2021-07-27 08:17:29 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 18
|
2021-07-27 08:17:29 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %f "f"
|
|
|
|
OpExecutionMode %f LocalSize 1 1 1
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %ssbo_block "ssbo_block"
|
|
|
|
OpMemberName %ssbo_block 0 "inner"
|
2021-07-27 08:17:29 +00:00
|
|
|
OpName %SSBO "SSBO"
|
|
|
|
OpMemberName %SSBO 0 "m"
|
|
|
|
OpName %ssbo "ssbo"
|
|
|
|
OpName %f "f"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %ssbo_block Block
|
|
|
|
OpMemberDecorate %ssbo_block 0 Offset 0
|
2021-07-27 08:17:29 +00:00
|
|
|
OpMemberDecorate %SSBO 0 Offset 0
|
|
|
|
OpMemberDecorate %SSBO 0 ColMajor
|
|
|
|
OpMemberDecorate %SSBO 0 MatrixStride 8
|
|
|
|
OpDecorate %ssbo DescriptorSet 0
|
|
|
|
OpDecorate %ssbo Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%mat2v2float = OpTypeMatrix %v2float 2
|
|
|
|
%SSBO = OpTypeStruct %mat2v2float
|
2022-11-02 02:25:38 +00:00
|
|
|
%ssbo_block = OpTypeStruct %SSBO
|
|
|
|
%_ptr_StorageBuffer_ssbo_block = OpTypePointer StorageBuffer %ssbo_block
|
|
|
|
%ssbo = OpVariable %_ptr_StorageBuffer_ssbo_block StorageBuffer
|
2021-07-27 08:17:29 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%8 = OpTypeFunction %void
|
2021-07-27 08:17:29 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
2022-11-02 02:25:38 +00:00
|
|
|
%f = OpFunction %void None %8
|
|
|
|
%11 = OpLabel
|
|
|
|
%15 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %ssbo %uint_0 %uint_0
|
|
|
|
%16 = OpLoad %mat2v2float %15
|
|
|
|
%17 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %ssbo %uint_0 %uint_0
|
|
|
|
OpStore %17 %16
|
2021-07-27 08:17:29 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|