Skip to content

Commit 85a1ed2

Browse files
authored
Merge pull request KhronosGroup#294 from kpet/clspv-texel-buffer
Add support for texel buffers to clspv non-semantic instruction set
2 parents 9cae924 + 4b5d128 commit 85a1ed2

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

include/spirv/unified1/NonSemanticClspvReflection.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
#endif
3434

3535
enum {
36-
NonSemanticClspvReflectionRevision = 3,
36+
NonSemanticClspvReflectionRevision = 4,
3737
NonSemanticClspvReflectionRevision_BitWidthPadding = 0x7fffffff
3838
};
3939

@@ -71,6 +71,8 @@ enum NonSemanticClspvReflectionInstructions {
7171
NonSemanticClspvReflectionImageArgumentInfoChannelDataTypePushConstant = 31,
7272
NonSemanticClspvReflectionImageArgumentInfoChannelOrderUniform = 32,
7373
NonSemanticClspvReflectionImageArgumentInfoChannelDataTypeUniform = 33,
74+
NonSemanticClspvReflectionArgumentStorageTexelBuffer = 34,
75+
NonSemanticClspvReflectionArgumentUniformTexelBuffer = 35,
7476
NonSemanticClspvReflectionInstructionsMax = 0x7fffffff
7577
};
7678

include/spirv/unified1/extinst.nonsemantic.clspvreflection.grammar.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"revision" : 3,
2+
"revision" : 4,
33
"instructions" : [
44
{
55
"opname" : "Kernel",
@@ -325,6 +325,28 @@
325325
{ "kind" : "IdRef", "name" : "Offset" },
326326
{ "kind" : "IdRef", "name" : "Size" }
327327
]
328+
},
329+
{
330+
"opname" : "ArgumentStorageTexelBuffer",
331+
"opcode" : 34,
332+
"operands" : [
333+
{ "kind" : "IdRef", "name" : "Decl" },
334+
{ "kind" : "IdRef", "name" : "Ordinal" },
335+
{ "kind" : "IdRef", "name" : "DescriptorSet" },
336+
{ "kind" : "IdRef", "name" : "Binding" },
337+
{ "kind" : "IdRef", "name" : "ArgInfo", "quantifier" : "?" }
338+
]
339+
},
340+
{
341+
"opname" : "ArgumentUniformTexelBuffer",
342+
"opcode" : 35,
343+
"operands" : [
344+
{ "kind" : "IdRef", "name" : "Decl" },
345+
{ "kind" : "IdRef", "name" : "Ordinal" },
346+
{ "kind" : "IdRef", "name" : "DescriptorSet" },
347+
{ "kind" : "IdRef", "name" : "Binding" },
348+
{ "kind" : "IdRef", "name" : "ArgInfo", "quantifier" : "?" }
349+
]
328350
}
329351
]
330352
}

0 commit comments

Comments
 (0)