mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +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>
31 lines
970 B
Plaintext
31 lines
970 B
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 16
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %ep "ep"
|
|
OpExecutionMode %ep LocalSize 2 1 1
|
|
OpName %main "main"
|
|
OpName %ep "ep"
|
|
%float = OpTypeFloat 32
|
|
%1 = OpTypeFunction %float
|
|
%float_2 = OpConstant %float 2
|
|
%float_3 = OpConstant %float 3
|
|
%float_4 = OpConstant %float 4
|
|
%float_5 = OpConstant %float 5
|
|
%void = OpTypeVoid
|
|
%12 = OpTypeFunction %void
|
|
%main = OpFunction %float None %1
|
|
%4 = OpLabel
|
|
%7 = OpFMul %float %float_2 %float_3
|
|
%9 = OpFSub %float %7 %float_4
|
|
%11 = OpFDiv %float %9 %float_5
|
|
OpReturnValue %11
|
|
OpFunctionEnd
|
|
%ep = OpFunction %void None %12
|
|
%15 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|