SPV: Correct SPIR-V operands for <id> versus immediate.
This commit is contained in:
parent
72f8c69097
commit
228e964bcc
3 changed files with 34 additions and 16 deletions
|
|
@ -61,13 +61,13 @@ namespace spv {
|
|||
|
||||
namespace spv {
|
||||
|
||||
// Called for each instruction in a block.
|
||||
// Called for each instruction that resides in a block.
|
||||
void Builder::postProcess(Instruction& inst)
|
||||
{
|
||||
// Add capabilities based simply on the opcode.
|
||||
switch (inst.getOpCode()) {
|
||||
case OpExtInst:
|
||||
switch (inst.getIdOperand(1)) {
|
||||
switch (inst.getImmediateOperand(1)) {
|
||||
case GLSLstd450InterpolateAtCentroid:
|
||||
case GLSLstd450InterpolateAtSample:
|
||||
case GLSLstd450InterpolateAtOffset:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue