39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
|
; SPIR-V
|
||
|
; Version: 1.3
|
||
|
; Generator: Google Tint Compiler; 0
|
||
|
; Bound: 14
|
||
|
; Schema: 0
|
||
|
OpCapability Shader
|
||
|
OpMemoryModel Logical GLSL450
|
||
|
OpEntryPoint Fragment %main "main"
|
||
|
OpExecutionMode %main OriginUpperLeft
|
||
|
OpName %S "S"
|
||
|
OpMemberName %S 0 "first"
|
||
|
OpMemberName %S 1 "rtarr"
|
||
|
OpName %myvar "myvar"
|
||
|
OpName %main_1 "main_1"
|
||
|
OpName %main "main"
|
||
|
OpDecorate %S Block
|
||
|
OpMemberDecorate %S 0 Offset 0
|
||
|
OpMemberDecorate %S 1 Offset 4
|
||
|
OpDecorate %_runtimearr_uint ArrayStride 4
|
||
|
OpDecorate %myvar DescriptorSet 0
|
||
|
OpDecorate %myvar Binding 0
|
||
|
%uint = OpTypeInt 32 0
|
||
|
%_runtimearr_uint = OpTypeRuntimeArray %uint
|
||
|
%S = OpTypeStruct %uint %_runtimearr_uint
|
||
|
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
||
|
%myvar = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
||
|
%void = OpTypeVoid
|
||
|
%6 = OpTypeFunction %void
|
||
|
%main_1 = OpFunction %void None %6
|
||
|
%9 = OpLabel
|
||
|
%10 = OpArrayLength %uint %myvar 1
|
||
|
OpReturn
|
||
|
OpFunctionEnd
|
||
|
%main = OpFunction %void None %6
|
||
|
%12 = OpLabel
|
||
|
%13 = OpFunctionCall %void %main_1
|
||
|
OpReturn
|
||
|
OpFunctionEnd
|