dawn-cmake/test/var/initialization/private/struct.wgsl.expected.spvasm
Ben Clayton fb4e751258 test: Add tests to verify variables are zero initialized
Bug: tint:938
Fixed: tint:759
Change-Id: I5794d7f40ec154c55240b163316ed45c7f14b190
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56547
Reviewed-by: James Price <jrprice@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2021-06-30 15:59:40 +00:00

30 lines
963 B
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 13
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %S "S"
OpMemberName %S 0 "a"
OpMemberName %S 1 "b"
OpName %v "v"
OpName %main "main"
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
%int = OpTypeInt 32 1
%float = OpTypeFloat 32
%S = OpTypeStruct %int %float
%_ptr_Private_S = OpTypePointer Private %S
%6 = OpConstantNull %S
%v = OpVariable %_ptr_Private_S Private %6
%void = OpTypeVoid
%7 = OpTypeFunction %void
%main = OpFunction %void None %7
%10 = OpLabel
%12 = OpLoad %S %v
OpReturn
OpFunctionEnd