mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +00:00
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>
38 lines
1.2 KiB
Plaintext
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
|