mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
tint->dawn: Shuffle source tree in preperation of merging repos
docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
38f1e9c75c
commit
dbc13af287
3
test/tint/expressions/zero_init/vec4/bool.wgsl
Normal file
3
test/tint/expressions/zero_init/vec4/bool.wgsl
Normal file
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<bool>();
|
||||
}
|
||||
10
test/tint/expressions/zero_init/vec4/bool.wgsl.expected.glsl
Normal file
10
test/tint/expressions/zero_init/vec4/bool.wgsl.expected.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 310 es
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
void f() {
|
||||
bvec4 v = bvec4(false, false, false, false);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
|
||||
void f() {
|
||||
bool4 v = bool4(false, false, false, false);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
bool4 v = bool4();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %unused_entry_point "unused_entry_point"
|
||||
OpName %f "f"
|
||||
OpName %v "v"
|
||||
%void = OpTypeVoid
|
||||
%1 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%v4bool = OpTypeVector %bool 4
|
||||
%9 = OpConstantNull %v4bool
|
||||
%_ptr_Function_v4bool = OpTypePointer Function %v4bool
|
||||
%unused_entry_point = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%f = OpFunction %void None %1
|
||||
%6 = OpLabel
|
||||
%v = OpVariable %_ptr_Function_v4bool Function %9
|
||||
OpStore %v %9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<bool>();
|
||||
}
|
||||
3
test/tint/expressions/zero_init/vec4/f32.wgsl
Normal file
3
test/tint/expressions/zero_init/vec4/f32.wgsl
Normal file
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<f32>();
|
||||
}
|
||||
10
test/tint/expressions/zero_init/vec4/f32.wgsl.expected.glsl
Normal file
10
test/tint/expressions/zero_init/vec4/f32.wgsl.expected.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 310 es
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
void f() {
|
||||
vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
|
||||
void f() {
|
||||
float4 v = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
float4 v = float4();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %unused_entry_point "unused_entry_point"
|
||||
OpName %f "f"
|
||||
OpName %v "v"
|
||||
%void = OpTypeVoid
|
||||
%1 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%9 = OpConstantNull %v4float
|
||||
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
||||
%unused_entry_point = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%f = OpFunction %void None %1
|
||||
%6 = OpLabel
|
||||
%v = OpVariable %_ptr_Function_v4float Function %9
|
||||
OpStore %v %9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<f32>();
|
||||
}
|
||||
3
test/tint/expressions/zero_init/vec4/i32.wgsl
Normal file
3
test/tint/expressions/zero_init/vec4/i32.wgsl
Normal file
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<i32>();
|
||||
}
|
||||
10
test/tint/expressions/zero_init/vec4/i32.wgsl.expected.glsl
Normal file
10
test/tint/expressions/zero_init/vec4/i32.wgsl.expected.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 310 es
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
void f() {
|
||||
ivec4 v = ivec4(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
|
||||
void f() {
|
||||
int4 v = int4(0, 0, 0, 0);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
int4 v = int4();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %unused_entry_point "unused_entry_point"
|
||||
OpName %f "f"
|
||||
OpName %v "v"
|
||||
%void = OpTypeVoid
|
||||
%1 = OpTypeFunction %void
|
||||
%int = OpTypeInt 32 1
|
||||
%v4int = OpTypeVector %int 4
|
||||
%9 = OpConstantNull %v4int
|
||||
%_ptr_Function_v4int = OpTypePointer Function %v4int
|
||||
%unused_entry_point = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%f = OpFunction %void None %1
|
||||
%6 = OpLabel
|
||||
%v = OpVariable %_ptr_Function_v4int Function %9
|
||||
OpStore %v %9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<i32>();
|
||||
}
|
||||
3
test/tint/expressions/zero_init/vec4/u32.wgsl
Normal file
3
test/tint/expressions/zero_init/vec4/u32.wgsl
Normal file
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<u32>();
|
||||
}
|
||||
10
test/tint/expressions/zero_init/vec4/u32.wgsl.expected.glsl
Normal file
10
test/tint/expressions/zero_init/vec4/u32.wgsl.expected.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 310 es
|
||||
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
void f() {
|
||||
uvec4 v = uvec4(0u, 0u, 0u, 0u);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void unused_entry_point() {
|
||||
return;
|
||||
}
|
||||
|
||||
void f() {
|
||||
uint4 v = uint4(0u, 0u, 0u, 0u);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
void f() {
|
||||
uint4 v = uint4();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
||||
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
||||
OpName %unused_entry_point "unused_entry_point"
|
||||
OpName %f "f"
|
||||
OpName %v "v"
|
||||
%void = OpTypeVoid
|
||||
%1 = OpTypeFunction %void
|
||||
%uint = OpTypeInt 32 0
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%9 = OpConstantNull %v4uint
|
||||
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
|
||||
%unused_entry_point = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%f = OpFunction %void None %1
|
||||
%6 = OpLabel
|
||||
%v = OpVariable %_ptr_Function_v4uint Function %9
|
||||
OpStore %v %9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,3 @@
|
||||
fn f() {
|
||||
var v = vec4<u32>();
|
||||
}
|
||||
Reference in New Issue
Block a user