Skip to content

Commit

Permalink
ClspvReflection non-sematic: add NormalizedSamplerMaskPushConstant (#377
Browse files Browse the repository at this point in the history
)

This is needed to implement 3D Image read using unnormalised sampler.
Ref google/clspv#1202
  • Loading branch information
rjodinchr authored Oct 11, 2023
1 parent e867c06 commit 4183b26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/spirv/unified1/NonSemanticClspvReflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
#endif

enum {
NonSemanticClspvReflectionRevision = 5,
NonSemanticClspvReflectionRevision = 6,
NonSemanticClspvReflectionRevision_BitWidthPadding = 0x7fffffff
};

Expand Down Expand Up @@ -78,6 +78,7 @@ enum NonSemanticClspvReflectionInstructions {
NonSemanticClspvReflectionPrintfInfo = 38,
NonSemanticClspvReflectionPrintfBufferStorageBuffer = 39,
NonSemanticClspvReflectionPrintfBufferPointerPushConstant = 40,
NonSemanticClspvReflectionNormalizedSamplerMaskPushConstant = 41,
NonSemanticClspvReflectionInstructionsMax = 0x7fffffff
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"revision" : 5,
"revision" : 6,
"instructions" : [
{
"opname" : "Kernel",
Expand Down Expand Up @@ -395,6 +395,16 @@
{ "kind" : "IdRef", "name" : "Size"},
{ "kind" : "IdRef", "name" : "BufferSize"}
]
},
{
"opname" : "NormalizedSamplerMaskPushConstant",
"opcode" : 41,
"operands" : [
{ "kind" : "IdRef", "name" : "Kernel" },
{ "kind" : "IdRef", "name" : "Ordinal" },
{ "kind" : "IdRef", "name" : "Offset" },
{ "kind" : "IdRef", "name" : "Size" }
]
}
],
"operand_kinds" : [
Expand Down

0 comments on commit 4183b26

Please sign in to comment.