52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 26
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
|
OpName %S "S"
|
|
OpMemberName %S 0 "v"
|
|
OpName %U "U"
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
OpName %f "f"
|
|
OpDecorate %S Block
|
|
OpMemberDecorate %S 0 Offset 0
|
|
OpDecorate %U DescriptorSet 0
|
|
OpDecorate %U Binding 0
|
|
%int = OpTypeInt 32 1
|
|
%v3int = OpTypeVector %int 3
|
|
%S = OpTypeStruct %v3int
|
|
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
|
%U = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
|
%void = OpTypeVoid
|
|
%6 = OpTypeFunction %void
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
|
%int_1 = OpConstant %int 1
|
|
%int_2 = OpConstant %int 2
|
|
%int_3 = OpConstant %int 3
|
|
%19 = OpConstantComposite %v3int %int_1 %int_2 %int_3
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
|
%uint_1 = OpConstant %uint 1
|
|
%uint_2 = OpConstant %uint 2
|
|
%unused_entry_point = OpFunction %void None %6
|
|
%9 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%f = OpFunction %void None %6
|
|
%11 = OpLabel
|
|
%15 = OpAccessChain %_ptr_StorageBuffer_v3int %U %uint_0
|
|
OpStore %15 %19
|
|
%21 = OpAccessChain %_ptr_StorageBuffer_int %U %uint_0 %uint_0
|
|
OpStore %21 %int_1
|
|
%23 = OpAccessChain %_ptr_StorageBuffer_int %U %uint_0 %uint_1
|
|
OpStore %23 %int_2
|
|
%25 = OpAccessChain %_ptr_StorageBuffer_int %U %uint_0 %uint_2
|
|
OpStore %25 %int_3
|
|
OpReturn
|
|
OpFunctionEnd
|