mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
The refactored CanonicalizeEntryPointIO transform makes it much easier to handle SPIR-V style IO as well, and doing this removes a lot of duplicated code. Remove all of the SPIR-V transform code for shader IO and vertex point size. Bug: tint:920 Change-Id: Id1b97517619b4d2fd09b45d5aee848259f3dfa77 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60840 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com> Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 25
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main" %value
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %value "value"
|
|
OpName %bar "bar"
|
|
OpName %main_inner "main_inner"
|
|
OpName %a "a"
|
|
OpName %main "main"
|
|
OpDecorate %value Location 0
|
|
%float = OpTypeFloat 32
|
|
%v4float = OpTypeVector %float 4
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
%5 = OpConstantNull %v4float
|
|
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
%void = OpTypeVoid
|
|
%6 = OpTypeFunction %void
|
|
%10 = OpTypeFunction %v4float
|
|
%v2float = OpTypeVector %float 2
|
|
%14 = 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
|
|
%21 = OpConstantComposite %v4float %float_0_400000006 %float_0_400000006 %float_0_800000012 %float_1
|
|
%bar = OpFunction %void None %6
|
|
%9 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%main_inner = OpFunction %v4float None %10
|
|
%12 = OpLabel
|
|
%a = OpVariable %_ptr_Function_v2float Function %14
|
|
OpStore %a %14
|
|
%17 = OpFunctionCall %void %bar
|
|
OpReturnValue %21
|
|
OpFunctionEnd
|
|
%main = OpFunction %void None %6
|
|
%23 = OpLabel
|
|
%24 = OpFunctionCall %v4float %main_inner
|
|
OpStore %value %24
|
|
OpReturn
|
|
OpFunctionEnd
|