mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +00:00
docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
34 lines
2.0 KiB
Plaintext
34 lines
2.0 KiB
Plaintext
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %f "f"
|
|
OpExecutionMode %f LocalSize 1 1 1
|
|
OpName %SSBO "SSBO"
|
|
OpMemberName %SSBO 0 "m"
|
|
OpName %ssbo "ssbo"
|
|
OpName %f "f"
|
|
OpDecorate %SSBO Block
|
|
OpMemberDecorate %SSBO 0 Offset 0
|
|
OpMemberDecorate %SSBO 0 ColMajor
|
|
OpMemberDecorate %SSBO 0 MatrixStride 16
|
|
OpDecorate %ssbo DescriptorSet 0
|
|
OpDecorate %ssbo Binding 0
|
|
%float = OpTypeFloat 32
|
|
%v2float = OpTypeVector %float 2
|
|
%mat2v2float = OpTypeMatrix %v2float 2
|
|
%SSBO = OpTypeStruct %mat2v2float
|
|
%_ptr_StorageBuffer_SSBO = OpTypePointer StorageBuffer %SSBO
|
|
%ssbo = OpVariable %_ptr_StorageBuffer_SSBO StorageBuffer
|
|
%void = OpTypeVoid
|
|
%7 = OpTypeFunction %void
|
|
%uint = OpTypeInt 32 0
|
|
%uint_0 = OpConstant %uint 0
|
|
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
|
%f = OpFunction %void None %7
|
|
%10 = OpLabel
|
|
%14 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %ssbo %uint_0
|
|
%15 = OpLoad %mat2v2float %14
|
|
%16 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %ssbo %uint_0
|
|
OpStore %16 %15
|
|
OpReturn
|
|
OpFunctionEnd
|