dawn-cmake/test/tint/bug/tint/1086.wgsl.expected.spvasm
Ben Clayton 8e3485248e tint/writer/spirv: Inline constant expressions
This is required to handle materialized values, and for constant
expressions.

Bug: tint:1504
Change-Id: If0a49e9b03566c06aa6e4e4c284fc427e1541e91
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92082
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
2022-06-01 15:57:22 +00:00

38 lines
1.2 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 19
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %f "f"
OpExecutionMode %f OriginUpperLeft
OpName %v "v"
OpName %x "x"
OpName %p "p"
OpName %g "g"
OpName %f "f"
%float = OpTypeFloat 32
%_ptr_Private_float = OpTypePointer Private %float
%4 = OpConstantNull %float
%v = OpVariable %_ptr_Private_float Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void %_ptr_Private_float
%11 = OpTypeFunction %void
%x = OpFunction %void None %5
%p = OpFunctionParameter %_ptr_Private_float
%9 = OpLabel
OpStore %p %4
OpReturn
OpFunctionEnd
%g = OpFunction %void None %11
%13 = OpLabel
%14 = OpFunctionCall %void %x %v
OpReturn
OpFunctionEnd
%f = OpFunction %void None %11
%17 = OpLabel
%18 = OpFunctionCall %void %g
OpReturn
OpFunctionEnd