mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 11:40:05 +00:00
0ad83f9139
OpSpecConstantComposite is not decorated with SpecId, and so is matched similarly to OpConstantComposite.
24 lines
903 B
Plaintext
24 lines
903 B
Plaintext
;; Tests OpSpecConstantComposite matching.
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main"
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpSource GLSL 450
|
|
OpName %main "main"
|
|
OpDecorate %7 SpecId 3
|
|
OpDecorate %8 SpecId 4
|
|
OpDecorate %gl_WorkGroupSize BuiltIn WorkgroupSize
|
|
%void = OpTypeVoid
|
|
%3 = OpTypeFunction %void
|
|
%uint = OpTypeInt 32 0
|
|
%7 = OpSpecConstant %uint 1
|
|
%8 = OpSpecConstant %uint 1
|
|
%uint_1 = OpConstant %uint 1
|
|
%v3uint = OpTypeVector %uint 3
|
|
%gl_WorkGroupSize = OpSpecConstantComposite %v3uint %7 %8 %uint_1
|
|
%main = OpFunction %void None %3
|
|
%5 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|