mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	Aside from more SPIR-V using OpConstantNull, this is a no-op change. By refactoring these methods, they're easier to read, and contain less lambda-heavy code. Change-Id: I89c26b2b9f1cd0785d86fb3293f7cfda550bef2e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94331 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			760 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			760 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
 | |
|           %8 = OpConstantNull %bool
 | |
|           %9 = OpConstantComposite %v3bool %true %true %8
 | |
|          %10 = OpConstantComposite %v3bool %true %8 %true
 | |
|           %f = OpFunction %void None %1
 | |
|           %4 = OpLabel
 | |
|          %11 = OpLogicalAnd %v3bool %9 %10
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |