mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	CTS tests: https://github.com/gpuweb/cts/pull/1012 Bug: tint:1371 Change-Id: Idd55c0bc9dad1dffb558d0bc57d744f65e9041b5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81701 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
		
			
				
	
	
		
			69 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 39
 | |
| ; Schema: 0
 | |
|                OpCapability Shader
 | |
|          %12 = OpExtInstImport "GLSL.std.450"
 | |
|                OpMemoryModel Logical GLSL450
 | |
|                OpEntryPoint GLCompute %f "f"
 | |
|                OpExecutionMode %f LocalSize 1 1 1
 | |
|                OpName %tint_insert_bits "tint_insert_bits"
 | |
|                OpName %v "v"
 | |
|                OpName %n "n"
 | |
|                OpName %offset "offset"
 | |
|                OpName %count "count"
 | |
|                OpName %f_1 "f_1"
 | |
|                OpName %v_0 "v"
 | |
|                OpName %n_0 "n"
 | |
|                OpName %offset_1 "offset_1"
 | |
|                OpName %count_0 "count"
 | |
|                OpName %f "f"
 | |
|         %int = OpTypeInt 32 1
 | |
|       %v3int = OpTypeVector %int 3
 | |
|        %uint = OpTypeInt 32 0
 | |
|           %1 = OpTypeFunction %v3int %v3int %v3int %uint %uint
 | |
|     %uint_32 = OpConstant %uint 32
 | |
|        %void = OpTypeVoid
 | |
|          %18 = OpTypeFunction %void
 | |
|          %22 = OpConstantNull %v3int
 | |
| %_ptr_Function_v3int = OpTypePointer Function %v3int
 | |
|      %uint_0 = OpConstant %uint 0
 | |
| %_ptr_Function_uint = OpTypePointer Function %uint
 | |
|          %29 = OpConstantNull %uint
 | |
| %tint_insert_bits = OpFunction %v3int None %1
 | |
|           %v = OpFunctionParameter %v3int
 | |
|           %n = OpFunctionParameter %v3int
 | |
|      %offset = OpFunctionParameter %uint
 | |
|       %count = OpFunctionParameter %uint
 | |
|          %10 = OpLabel
 | |
|          %11 = OpExtInst %uint %12 UMin %offset %uint_32
 | |
|          %15 = OpIAdd %uint %11 %count
 | |
|          %14 = OpExtInst %uint %12 UMin %uint_32 %15
 | |
|          %17 = OpISub %uint %14 %11
 | |
|          %16 = OpBitFieldInsert %v3int %v %n %11 %17
 | |
|                OpReturnValue %16
 | |
|                OpFunctionEnd
 | |
|         %f_1 = OpFunction %void None %18
 | |
|          %21 = OpLabel
 | |
|         %v_0 = OpVariable %_ptr_Function_v3int Function %22
 | |
|         %n_0 = OpVariable %_ptr_Function_v3int Function %22
 | |
|    %offset_1 = OpVariable %_ptr_Function_uint Function %29
 | |
|     %count_0 = OpVariable %_ptr_Function_uint Function %29
 | |
|                OpStore %v_0 %22
 | |
|                OpStore %n_0 %22
 | |
|                OpStore %offset_1 %uint_0
 | |
|                OpStore %count_0 %uint_0
 | |
|          %31 = OpLoad %v3int %v_0
 | |
|          %32 = OpLoad %v3int %n_0
 | |
|          %33 = OpLoad %uint %offset_1
 | |
|          %34 = OpLoad %uint %count_0
 | |
|          %35 = OpFunctionCall %v3int %tint_insert_bits %31 %32 %33 %34
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 | |
|           %f = OpFunction %void None %18
 | |
|          %37 = OpLabel
 | |
|          %38 = OpFunctionCall %void %f_1
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |