mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-02 04:31:26 +00:00
The expected output is far from perfect, and the generated HLSL and MSL isn't even validated yet, so may be incorrect. However, by committing the generated output, we get clear examples of the currently generated output of each backend. As we land fixes and improvements to each backend, the presubmits will require us to update the expected test output, and so code reviews will include diffs of each backend's generated output. Change-Id: I5c2a9e5b796d0ab75b3ec4c7f8ad00a0a2ab166f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51224 Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: David Neto <dneto@google.com>
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 26
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %tint_symbol_1
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %tint_symbol_1 "tint_symbol_1"
|
|
OpName %bar "bar"
|
|
OpName %tint_symbol_2 "tint_symbol_2"
|
|
OpName %tint_symbol "tint_symbol"
|
|
OpName %main "main"
|
|
OpName %a "a"
|
|
OpDecorate %tint_symbol_1 Location 0
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%5 = OpConstantNull %v4float
|
|
%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %5
|
|
%void = OpTypeVoid
|
|
%6 = OpTypeFunction %void
|
|
%10 = OpTypeFunction %void %v4float
|
|
%v2float = OpTypeVector %float 2
|
|
%17 = OpConstantNull %v2float
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
|
%float_0_400000006 = OpConstant %float 0.400000006
|
|
%float_0_800000012 = OpConstant %float 0.800000012
|
|
%float_1 = OpConstant %float 1
|
|
%25 = OpConstantComposite %v4float %float_0_400000006 %float_0_400000006 %float_0_800000012 %float_1
|
|
%bar = OpFunction %void None %6
|
|
%9 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%tint_symbol_2 = OpFunction %void None %10
|
|
%tint_symbol = OpFunctionParameter %v4float
|
|
%13 = OpLabel
|
|
OpStore %tint_symbol_1 %tint_symbol
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %6
|
|
%15 = OpLabel
|
|
%a = OpVariable %_ptr_Function_v2float Function %17
|
|
OpStore %a %17
|
|
%20 = OpFunctionCall %void %bar
|
|
%21 = OpFunctionCall %void %tint_symbol_2 %25
|
|
OpReturn
|
|
OpFunctionEnd
|