Skip to content

Commit

Permalink
Merge pull request #294 from kpet/clspv-texel-buffer
Browse files Browse the repository at this point in the history
Add support for texel buffers to clspv non-semantic instruction set
  • Loading branch information
johnkslang authored Oct 5, 2022
2 parents 9cae924 + 4b5d128 commit 85a1ed2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 3 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 = 3,
NonSemanticClspvReflectionRevision = 4,
NonSemanticClspvReflectionRevision_BitWidthPadding = 0x7fffffff
};

Expand Down Expand Up @@ -71,6 +71,8 @@ enum NonSemanticClspvReflectionInstructions {
NonSemanticClspvReflectionImageArgumentInfoChannelDataTypePushConstant = 31,
NonSemanticClspvReflectionImageArgumentInfoChannelOrderUniform = 32,
NonSemanticClspvReflectionImageArgumentInfoChannelDataTypeUniform = 33,
NonSemanticClspvReflectionArgumentStorageTexelBuffer = 34,
NonSemanticClspvReflectionArgumentUniformTexelBuffer = 35,
NonSemanticClspvReflectionInstructionsMax = 0x7fffffff
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"revision" : 3,
"revision" : 4,
"instructions" : [
{
"opname" : "Kernel",
Expand Down Expand Up @@ -325,6 +325,28 @@
{ "kind" : "IdRef", "name" : "Offset" },
{ "kind" : "IdRef", "name" : "Size" }
]
},
{
"opname" : "ArgumentStorageTexelBuffer",
"opcode" : 34,
"operands" : [
{ "kind" : "IdRef", "name" : "Decl" },
{ "kind" : "IdRef", "name" : "Ordinal" },
{ "kind" : "IdRef", "name" : "DescriptorSet" },
{ "kind" : "IdRef", "name" : "Binding" },
{ "kind" : "IdRef", "name" : "ArgInfo", "quantifier" : "?" }
]
},
{
"opname" : "ArgumentUniformTexelBuffer",
"opcode" : 35,
"operands" : [
{ "kind" : "IdRef", "name" : "Decl" },
{ "kind" : "IdRef", "name" : "Ordinal" },
{ "kind" : "IdRef", "name" : "DescriptorSet" },
{ "kind" : "IdRef", "name" : "Binding" },
{ "kind" : "IdRef", "name" : "ArgInfo", "quantifier" : "?" }
]
}
]
}

0 comments on commit 85a1ed2

Please sign in to comment.