mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 04:01:26 +00:00
This CL adds a SubstituteOverride transform which will convert an `override` into a `const`. The transform is provided a map of (string, double) which matches what the WebGPU API accepts as data for overrides. Bug: tint:1582 Change-Id: I6e6bf51b98ce4d4746f8de55128666c36735e585 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96760 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
31 lines
941 B
Plaintext
31 lines
941 B
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 13
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main"
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpName %main "main"
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%bool = OpTypeBool
|
|
%6 = OpConstantNull %bool
|
|
%true = OpConstantTrue %bool
|
|
%main = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
OpSelectionMerge %7 None
|
|
OpBranchConditional %6 %8 %7
|
|
%8 = OpLabel
|
|
OpBranch %7
|
|
%7 = OpLabel
|
|
%10 = OpPhi %bool %6 %4 %true %8
|
|
OpSelectionMerge %11 None
|
|
OpBranchConditional %10 %12 %11
|
|
%12 = OpLabel
|
|
OpBranch %11
|
|
%11 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|