mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-17 12:51:28 +00:00
The bitwise-and and bitwise-or binary operators on booleans result in an integer. Explicitly cast this back to a boolean. Fixed: tint:1540 Fixed: tint:1541 Change-Id: I395176f291e6080c88b8cff18e14ed6cd1234074 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90501 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
24 lines
769 B
Plaintext
24 lines
769 B
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 12
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %f "f"
|
|
OpExecutionMode %f LocalSize 1 1 1
|
|
OpName %f "f"
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%bool = OpTypeBool
|
|
%v3bool = OpTypeVector %bool 3
|
|
%true = OpConstantTrue %bool
|
|
%false = OpConstantFalse %bool
|
|
%9 = OpConstantComposite %v3bool %true %true %false
|
|
%10 = OpConstantComposite %v3bool %true %false %true
|
|
%f = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
%11 = OpLogicalAnd %v3bool %9 %10
|
|
OpReturn
|
|
OpFunctionEnd
|