Migrate more tests from Ignore() to phony-assignment
The `Ignore()` intrinsic is about to be deprecated, so don't use it for testing. Bug: tint:1213 Change-Id: I314ecaeb9a9c337c7b6980189054120a74807ebd Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67066 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
parent
cc7c4f309b
commit
c2fa68e551
|
@ -69,11 +69,11 @@ fn main(fragment : FragmentInput) -> FragmentOutput {
|
|||
var output : FragmentOutput;
|
||||
output.color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
|
||||
ignore(uniforms);
|
||||
ignore(mySampler);
|
||||
ignore(myTexture);
|
||||
_ = uniforms;
|
||||
_ = mySampler;
|
||||
_ = myTexture;
|
||||
|
||||
ignore(pointLights);
|
||||
_ = &pointLights;
|
||||
// output.color.x = output.color.x + pointLights.values[0].position.x;
|
||||
|
||||
return output;
|
||||
|
|
|
@ -51,10 +51,6 @@ struct tint_symbol_2 {
|
|||
FragmentOutput main_inner(FragmentInput fragment) {
|
||||
FragmentOutput output = (FragmentOutput)0;
|
||||
output.color = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
uniforms;
|
||||
mySampler;
|
||||
myTexture;
|
||||
pointLights;
|
||||
return output;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,19 +56,15 @@ float4 getColor(constant Uniforms& uniforms, FragmentInput tint_symbol, texture2
|
|||
return color;
|
||||
}
|
||||
|
||||
FragmentOutput tint_symbol_1_inner(constant Uniforms& uniforms, const device PointLights& pointLights, FragmentInput tint_symbol, sampler tint_symbol_8, texture2d<float, access::sample> tint_symbol_9) {
|
||||
FragmentOutput tint_symbol_1_inner(FragmentInput tint_symbol, sampler tint_symbol_8, texture2d<float, access::sample> tint_symbol_9) {
|
||||
FragmentOutput output = {};
|
||||
output.color = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
(void) uniforms;
|
||||
(void) tint_symbol_8;
|
||||
(void) tint_symbol_9;
|
||||
(void) pointLights;
|
||||
return output;
|
||||
}
|
||||
|
||||
fragment tint_symbol_4 tint_symbol_1(sampler tint_symbol_10 [[sampler(0)]], texture2d<float, access::sample> tint_symbol_11 [[texture(0)]], float4 position [[position]], tint_symbol_3 tint_symbol_2 [[stage_in]], constant Uniforms& uniforms [[buffer(0)]], const device PointLights& pointLights [[buffer(1)]]) {
|
||||
fragment tint_symbol_4 tint_symbol_1(sampler tint_symbol_10 [[sampler(0)]], texture2d<float, access::sample> tint_symbol_11 [[texture(0)]], float4 position [[position]], tint_symbol_3 tint_symbol_2 [[stage_in]]) {
|
||||
FragmentInput const tint_symbol_5 = {.position=position, .view_position=tint_symbol_2.view_position, .normal=tint_symbol_2.normal, .uv=tint_symbol_2.uv, .color=tint_symbol_2.color};
|
||||
FragmentOutput const inner_result = tint_symbol_1_inner(uniforms, pointLights, tint_symbol_5, tint_symbol_10, tint_symbol_11);
|
||||
FragmentOutput const inner_result = tint_symbol_1_inner(tint_symbol_5, tint_symbol_10, tint_symbol_11);
|
||||
tint_symbol_4 wrapper_result = {};
|
||||
wrapper_result.color = inner_result.color;
|
||||
return wrapper_result;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 110
|
||||
; Bound: 107
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
@ -128,7 +128,7 @@
|
|||
%float_0 = OpConstant %float 0
|
||||
%92 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
||||
%void = OpTypeVoid
|
||||
%99 = OpTypeFunction %void
|
||||
%95 = OpTypeFunction %void
|
||||
%getColor = OpFunction %v4float None %30
|
||||
%fragment = OpFunctionParameter %FragmentInput
|
||||
%34 = OpLabel
|
||||
|
@ -195,19 +195,19 @@
|
|||
%output = OpVariable %_ptr_Function_FragmentOutput Function %89
|
||||
%90 = OpAccessChain %_ptr_Function_v4float %output %uint_0
|
||||
OpStore %90 %92
|
||||
%98 = OpLoad %FragmentOutput %output
|
||||
OpReturnValue %98
|
||||
%94 = OpLoad %FragmentOutput %output
|
||||
OpReturnValue %94
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %99
|
||||
%101 = OpLabel
|
||||
%103 = OpLoad %v4float %position_1
|
||||
%104 = OpLoad %v4float %view_position_1
|
||||
%105 = OpLoad %v4float %normal_1
|
||||
%106 = OpLoad %v2float %uv_1
|
||||
%107 = OpLoad %v4float %color_1
|
||||
%108 = OpCompositeConstruct %FragmentInput %103 %104 %105 %106 %107
|
||||
%102 = OpFunctionCall %FragmentOutput %main_inner %108
|
||||
%109 = OpCompositeExtract %v4float %102 0
|
||||
OpStore %color_2 %109
|
||||
%main = OpFunction %void None %95
|
||||
%98 = OpLabel
|
||||
%100 = OpLoad %v4float %position_1
|
||||
%101 = OpLoad %v4float %view_position_1
|
||||
%102 = OpLoad %v4float %normal_1
|
||||
%103 = OpLoad %v2float %uv_1
|
||||
%104 = OpLoad %v4float %color_1
|
||||
%105 = OpCompositeConstruct %FragmentInput %100 %101 %102 %103 %104
|
||||
%99 = OpFunctionCall %FragmentOutput %main_inner %105
|
||||
%106 = OpCompositeExtract %v4float %99 0
|
||||
OpStore %color_2 %106
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
|
|
@ -61,9 +61,9 @@ fn getColor(fragment : FragmentInput) -> vec4<f32> {
|
|||
fn main(fragment : FragmentInput) -> FragmentOutput {
|
||||
var output : FragmentOutput;
|
||||
output.color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
ignore(uniforms);
|
||||
ignore(mySampler);
|
||||
ignore(myTexture);
|
||||
ignore(pointLights);
|
||||
_ = uniforms;
|
||||
_ = mySampler;
|
||||
_ = myTexture;
|
||||
_ = &(pointLights);
|
||||
return output;
|
||||
}
|
||||
|
|
|
@ -61,54 +61,54 @@ struct S {
|
|||
|
||||
[[stage(fragment)]]
|
||||
fn main() {
|
||||
ignore(b0);
|
||||
ignore(b1);
|
||||
ignore(b2);
|
||||
ignore(b3);
|
||||
ignore(b4);
|
||||
ignore(b5);
|
||||
ignore(b6);
|
||||
ignore(b7);
|
||||
ignore(b8);
|
||||
ignore(b9);
|
||||
ignore(b10);
|
||||
ignore(b11);
|
||||
ignore(b12);
|
||||
ignore(b13);
|
||||
ignore(b14);
|
||||
ignore(b15);
|
||||
_ = b0;
|
||||
_ = b1;
|
||||
_ = b2;
|
||||
_ = b3;
|
||||
_ = b4;
|
||||
_ = b5;
|
||||
_ = b6;
|
||||
_ = b7;
|
||||
_ = b8;
|
||||
_ = b9;
|
||||
_ = b10;
|
||||
_ = b11;
|
||||
_ = b12;
|
||||
_ = b13;
|
||||
_ = b14;
|
||||
_ = b15;
|
||||
|
||||
ignore(t0);
|
||||
ignore(t1);
|
||||
ignore(t2);
|
||||
ignore(t3);
|
||||
ignore(t4);
|
||||
ignore(t5);
|
||||
ignore(t6);
|
||||
ignore(t7);
|
||||
ignore(t8);
|
||||
ignore(t9);
|
||||
ignore(t10);
|
||||
ignore(t11);
|
||||
ignore(t12);
|
||||
ignore(t13);
|
||||
ignore(t14);
|
||||
ignore(t15);
|
||||
_ = t0;
|
||||
_ = t1;
|
||||
_ = t2;
|
||||
_ = t3;
|
||||
_ = t4;
|
||||
_ = t5;
|
||||
_ = t6;
|
||||
_ = t7;
|
||||
_ = t8;
|
||||
_ = t9;
|
||||
_ = t10;
|
||||
_ = t11;
|
||||
_ = t12;
|
||||
_ = t13;
|
||||
_ = t14;
|
||||
_ = t15;
|
||||
|
||||
ignore(s0);
|
||||
ignore(s1);
|
||||
ignore(s2);
|
||||
ignore(s3);
|
||||
ignore(s4);
|
||||
ignore(s5);
|
||||
ignore(s6);
|
||||
ignore(s7);
|
||||
ignore(s8);
|
||||
ignore(s9);
|
||||
ignore(s10);
|
||||
ignore(s11);
|
||||
ignore(s12);
|
||||
ignore(s13);
|
||||
ignore(s14);
|
||||
ignore(s15);
|
||||
_ = s0;
|
||||
_ = s1;
|
||||
_ = s2;
|
||||
_ = s3;
|
||||
_ = s4;
|
||||
_ = s5;
|
||||
_ = s6;
|
||||
_ = s7;
|
||||
_ = s8;
|
||||
_ = s9;
|
||||
_ = s10;
|
||||
_ = s11;
|
||||
_ = s12;
|
||||
_ = s13;
|
||||
_ = s14;
|
||||
_ = s15;
|
||||
}
|
||||
|
|
|
@ -64,53 +64,5 @@ SamplerComparisonState s14 : register(s300, space14);
|
|||
SamplerComparisonState s15 : register(s300, space15);
|
||||
|
||||
void main() {
|
||||
b0;
|
||||
b1;
|
||||
b2;
|
||||
b3;
|
||||
b4;
|
||||
b5;
|
||||
b6;
|
||||
b7;
|
||||
b8;
|
||||
b9;
|
||||
b10;
|
||||
b11;
|
||||
b12;
|
||||
b13;
|
||||
b14;
|
||||
b15;
|
||||
t0;
|
||||
t1;
|
||||
t2;
|
||||
t3;
|
||||
t4;
|
||||
t5;
|
||||
t6;
|
||||
t7;
|
||||
t8;
|
||||
t9;
|
||||
t10;
|
||||
t11;
|
||||
t12;
|
||||
t13;
|
||||
t14;
|
||||
t15;
|
||||
s0;
|
||||
s1;
|
||||
s2;
|
||||
s3;
|
||||
s4;
|
||||
s5;
|
||||
s6;
|
||||
s7;
|
||||
s8;
|
||||
s9;
|
||||
s10;
|
||||
s11;
|
||||
s12;
|
||||
s13;
|
||||
s14;
|
||||
s15;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -5,55 +5,7 @@ struct S {
|
|||
/* 0x0000 */ float a;
|
||||
};
|
||||
|
||||
fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_1 [[texture(0)]], texture2d<float, access::sample> tint_symbol_2 [[texture(1)]], texture2d<float, access::sample> tint_symbol_3 [[texture(2)]], texture2d<float, access::sample> tint_symbol_4 [[texture(3)]], texture2d<float, access::sample> tint_symbol_5 [[texture(4)]], texture2d<float, access::sample> tint_symbol_6 [[texture(5)]], texture2d<float, access::sample> tint_symbol_7 [[texture(6)]], texture2d<float, access::sample> tint_symbol_8 [[texture(7)]], depth2d<float, access::sample> tint_symbol_9 [[texture(8)]], depth2d<float, access::sample> tint_symbol_10 [[texture(9)]], depth2d<float, access::sample> tint_symbol_11 [[texture(10)]], depth2d<float, access::sample> tint_symbol_12 [[texture(11)]], depth2d<float, access::sample> tint_symbol_13 [[texture(12)]], depth2d<float, access::sample> tint_symbol_14 [[texture(13)]], depth2d<float, access::sample> tint_symbol_15 [[texture(14)]], depth2d<float, access::sample> tint_symbol_16 [[texture(15)]], sampler tint_symbol_17 [[sampler(0)]], sampler tint_symbol_18 [[sampler(1)]], sampler tint_symbol_19 [[sampler(2)]], sampler tint_symbol_20 [[sampler(3)]], sampler tint_symbol_21 [[sampler(4)]], sampler tint_symbol_22 [[sampler(5)]], sampler tint_symbol_23 [[sampler(6)]], sampler tint_symbol_24 [[sampler(7)]], sampler tint_symbol_25 [[sampler(8)]], sampler tint_symbol_26 [[sampler(9)]], sampler tint_symbol_27 [[sampler(10)]], sampler tint_symbol_28 [[sampler(11)]], sampler tint_symbol_29 [[sampler(12)]], sampler tint_symbol_30 [[sampler(13)]], sampler tint_symbol_31 [[sampler(14)]], sampler tint_symbol_32 [[sampler(15)]], constant S& b8 [[buffer(0)]], constant S& b9 [[buffer(1)]], constant S& b10 [[buffer(2)]], constant S& b11 [[buffer(3)]], constant S& b12 [[buffer(4)]], constant S& b13 [[buffer(5)]], constant S& b14 [[buffer(6)]], constant S& b15 [[buffer(7)]], const device S& b0 [[buffer(8)]], const device S& b1 [[buffer(9)]], const device S& b2 [[buffer(10)]], const device S& b3 [[buffer(11)]], const device S& b4 [[buffer(12)]], const device S& b5 [[buffer(13)]], const device S& b6 [[buffer(14)]], const device S& b7 [[buffer(15)]]) {
|
||||
(void) b0;
|
||||
(void) b1;
|
||||
(void) b2;
|
||||
(void) b3;
|
||||
(void) b4;
|
||||
(void) b5;
|
||||
(void) b6;
|
||||
(void) b7;
|
||||
(void) b8;
|
||||
(void) b9;
|
||||
(void) b10;
|
||||
(void) b11;
|
||||
(void) b12;
|
||||
(void) b13;
|
||||
(void) b14;
|
||||
(void) b15;
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
(void) tint_symbol_4;
|
||||
(void) tint_symbol_5;
|
||||
(void) tint_symbol_6;
|
||||
(void) tint_symbol_7;
|
||||
(void) tint_symbol_8;
|
||||
(void) tint_symbol_9;
|
||||
(void) tint_symbol_10;
|
||||
(void) tint_symbol_11;
|
||||
(void) tint_symbol_12;
|
||||
(void) tint_symbol_13;
|
||||
(void) tint_symbol_14;
|
||||
(void) tint_symbol_15;
|
||||
(void) tint_symbol_16;
|
||||
(void) tint_symbol_17;
|
||||
(void) tint_symbol_18;
|
||||
(void) tint_symbol_19;
|
||||
(void) tint_symbol_20;
|
||||
(void) tint_symbol_21;
|
||||
(void) tint_symbol_22;
|
||||
(void) tint_symbol_23;
|
||||
(void) tint_symbol_24;
|
||||
(void) tint_symbol_25;
|
||||
(void) tint_symbol_26;
|
||||
(void) tint_symbol_27;
|
||||
(void) tint_symbol_28;
|
||||
(void) tint_symbol_29;
|
||||
(void) tint_symbol_30;
|
||||
(void) tint_symbol_31;
|
||||
(void) tint_symbol_32;
|
||||
fragment void tint_symbol(texture2d<float, access::sample> tint_symbol_1 [[texture(0)]], texture2d<float, access::sample> tint_symbol_2 [[texture(1)]], texture2d<float, access::sample> tint_symbol_3 [[texture(2)]], texture2d<float, access::sample> tint_symbol_4 [[texture(3)]], texture2d<float, access::sample> tint_symbol_5 [[texture(4)]], texture2d<float, access::sample> tint_symbol_6 [[texture(5)]], texture2d<float, access::sample> tint_symbol_7 [[texture(6)]], texture2d<float, access::sample> tint_symbol_8 [[texture(7)]], depth2d<float, access::sample> tint_symbol_9 [[texture(8)]], depth2d<float, access::sample> tint_symbol_10 [[texture(9)]], depth2d<float, access::sample> tint_symbol_11 [[texture(10)]], depth2d<float, access::sample> tint_symbol_12 [[texture(11)]], depth2d<float, access::sample> tint_symbol_13 [[texture(12)]], depth2d<float, access::sample> tint_symbol_14 [[texture(13)]], depth2d<float, access::sample> tint_symbol_15 [[texture(14)]], depth2d<float, access::sample> tint_symbol_16 [[texture(15)]], sampler tint_symbol_17 [[sampler(0)]], sampler tint_symbol_18 [[sampler(1)]], sampler tint_symbol_19 [[sampler(2)]], sampler tint_symbol_20 [[sampler(3)]], sampler tint_symbol_21 [[sampler(4)]], sampler tint_symbol_22 [[sampler(5)]], sampler tint_symbol_23 [[sampler(6)]], sampler tint_symbol_24 [[sampler(7)]], sampler tint_symbol_25 [[sampler(8)]], sampler tint_symbol_26 [[sampler(9)]], sampler tint_symbol_27 [[sampler(10)]], sampler tint_symbol_28 [[sampler(11)]], sampler tint_symbol_29 [[sampler(12)]], sampler tint_symbol_30 [[sampler(13)]], sampler tint_symbol_31 [[sampler(14)]], sampler tint_symbol_32 [[sampler(15)]]) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 112
|
||||
; Bound: 64
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -101,52 +101,52 @@ struct S {
|
|||
|
||||
[[stage(fragment)]]
|
||||
fn main() {
|
||||
ignore(b0);
|
||||
ignore(b1);
|
||||
ignore(b2);
|
||||
ignore(b3);
|
||||
ignore(b4);
|
||||
ignore(b5);
|
||||
ignore(b6);
|
||||
ignore(b7);
|
||||
ignore(b8);
|
||||
ignore(b9);
|
||||
ignore(b10);
|
||||
ignore(b11);
|
||||
ignore(b12);
|
||||
ignore(b13);
|
||||
ignore(b14);
|
||||
ignore(b15);
|
||||
ignore(t0);
|
||||
ignore(t1);
|
||||
ignore(t2);
|
||||
ignore(t3);
|
||||
ignore(t4);
|
||||
ignore(t5);
|
||||
ignore(t6);
|
||||
ignore(t7);
|
||||
ignore(t8);
|
||||
ignore(t9);
|
||||
ignore(t10);
|
||||
ignore(t11);
|
||||
ignore(t12);
|
||||
ignore(t13);
|
||||
ignore(t14);
|
||||
ignore(t15);
|
||||
ignore(s0);
|
||||
ignore(s1);
|
||||
ignore(s2);
|
||||
ignore(s3);
|
||||
ignore(s4);
|
||||
ignore(s5);
|
||||
ignore(s6);
|
||||
ignore(s7);
|
||||
ignore(s8);
|
||||
ignore(s9);
|
||||
ignore(s10);
|
||||
ignore(s11);
|
||||
ignore(s12);
|
||||
ignore(s13);
|
||||
ignore(s14);
|
||||
ignore(s15);
|
||||
_ = b0;
|
||||
_ = b1;
|
||||
_ = b2;
|
||||
_ = b3;
|
||||
_ = b4;
|
||||
_ = b5;
|
||||
_ = b6;
|
||||
_ = b7;
|
||||
_ = b8;
|
||||
_ = b9;
|
||||
_ = b10;
|
||||
_ = b11;
|
||||
_ = b12;
|
||||
_ = b13;
|
||||
_ = b14;
|
||||
_ = b15;
|
||||
_ = t0;
|
||||
_ = t1;
|
||||
_ = t2;
|
||||
_ = t3;
|
||||
_ = t4;
|
||||
_ = t5;
|
||||
_ = t6;
|
||||
_ = t7;
|
||||
_ = t8;
|
||||
_ = t9;
|
||||
_ = t10;
|
||||
_ = t11;
|
||||
_ = t12;
|
||||
_ = t13;
|
||||
_ = t14;
|
||||
_ = t15;
|
||||
_ = s0;
|
||||
_ = s1;
|
||||
_ = s2;
|
||||
_ = s3;
|
||||
_ = s4;
|
||||
_ = s5;
|
||||
_ = s6;
|
||||
_ = s7;
|
||||
_ = s8;
|
||||
_ = s9;
|
||||
_ = s10;
|
||||
_ = s11;
|
||||
_ = s12;
|
||||
_ = s13;
|
||||
_ = s14;
|
||||
_ = s15;
|
||||
}
|
||||
|
|
|
@ -2,19 +2,19 @@
|
|||
// same intrinsic overload results in single helper being generated.
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(isNormal(vec4<f32>()));
|
||||
ignore(isNormal(vec4<f32>(1.)));
|
||||
ignore(isNormal(vec4<f32>(1., 2., 3., 4.)));
|
||||
_ = isNormal(vec4<f32>());
|
||||
_ = isNormal(vec4<f32>(1.));
|
||||
_ = isNormal(vec4<f32>(1., 2., 3., 4.));
|
||||
|
||||
ignore(isNormal(vec3<f32>()));
|
||||
ignore(isNormal(vec3<f32>(1.)));
|
||||
ignore(isNormal(vec3<f32>(1., 2., 3.)));
|
||||
_ = isNormal(vec3<f32>());
|
||||
_ = isNormal(vec3<f32>(1.));
|
||||
_ = isNormal(vec3<f32>(1., 2., 3.));
|
||||
|
||||
ignore(isNormal(vec2<f32>()));
|
||||
ignore(isNormal(vec2<f32>(1.)));
|
||||
ignore(isNormal(vec2<f32>(1., 2.)));
|
||||
_ = isNormal(vec2<f32>());
|
||||
_ = isNormal(vec2<f32>(1.));
|
||||
_ = isNormal(vec2<f32>(1., 2.));
|
||||
|
||||
ignore(isNormal(1.));
|
||||
ignore(isNormal(2.));
|
||||
ignore(isNormal(3.));
|
||||
_ = isNormal(1.);
|
||||
_ = isNormal(2.);
|
||||
_ = isNormal(3.);
|
||||
}
|
||||
|
|
|
@ -24,17 +24,17 @@ bool tint_isNormal_3(float param_0) {
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
tint_isNormal(float4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
tint_isNormal(float4((1.0f).xxxx));
|
||||
tint_isNormal(float4(1.0f, 2.0f, 3.0f, 4.0f));
|
||||
tint_isNormal_1(float3(0.0f, 0.0f, 0.0f));
|
||||
tint_isNormal_1(float3((1.0f).xxx));
|
||||
tint_isNormal_1(float3(1.0f, 2.0f, 3.0f));
|
||||
tint_isNormal_2(float2(0.0f, 0.0f));
|
||||
tint_isNormal_2(float2((1.0f).xx));
|
||||
tint_isNormal_2(float2(1.0f, 2.0f));
|
||||
tint_isNormal_3(1.0f);
|
||||
tint_isNormal_3(2.0f);
|
||||
tint_isNormal_3(3.0f);
|
||||
(void) tint_isNormal(float4(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
(void) tint_isNormal(float4((1.0f).xxxx));
|
||||
(void) tint_isNormal(float4(1.0f, 2.0f, 3.0f, 4.0f));
|
||||
(void) tint_isNormal_1(float3(0.0f, 0.0f, 0.0f));
|
||||
(void) tint_isNormal_1(float3((1.0f).xxx));
|
||||
(void) tint_isNormal_1(float3(1.0f, 2.0f, 3.0f));
|
||||
(void) tint_isNormal_2(float2(0.0f, 0.0f));
|
||||
(void) tint_isNormal_2(float2((1.0f).xx));
|
||||
(void) tint_isNormal_2(float2(1.0f, 2.0f));
|
||||
(void) tint_isNormal_3(1.0f);
|
||||
(void) tint_isNormal_3(2.0f);
|
||||
(void) tint_isNormal_3(3.0f);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
(void) isnormal(float4());
|
||||
(void) isnormal(float4(1.0f));
|
||||
(void) isnormal(float4(1.0f, 2.0f, 3.0f, 4.0f));
|
||||
(void) isnormal(float3());
|
||||
(void) isnormal(float3(1.0f));
|
||||
(void) isnormal(float3(1.0f, 2.0f, 3.0f));
|
||||
(void) isnormal(float2());
|
||||
(void) isnormal(float2(1.0f));
|
||||
(void) isnormal(float2(1.0f, 2.0f));
|
||||
(void) isnormal(1.0f);
|
||||
(void) isnormal(2.0f);
|
||||
(void) isnormal(3.0f);
|
||||
isnormal(float4());
|
||||
isnormal(float4(1.0f));
|
||||
isnormal(float4(1.0f, 2.0f, 3.0f, 4.0f));
|
||||
isnormal(float3());
|
||||
isnormal(float3(1.0f));
|
||||
isnormal(float3(1.0f, 2.0f, 3.0f));
|
||||
isnormal(float2());
|
||||
isnormal(float2(1.0f));
|
||||
isnormal(float2(1.0f, 2.0f));
|
||||
isnormal(1.0f);
|
||||
isnormal(2.0f);
|
||||
isnormal(3.0f);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 121
|
||||
; Bound: 109
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
%12 = OpExtInstImport "GLSL.std.450"
|
||||
%11 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %main "main"
|
||||
OpExecutionMode %main LocalSize 1 1 1
|
||||
|
@ -15,106 +15,106 @@
|
|||
%v4bool = OpTypeVector %bool 4
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%11 = OpConstantNull %v4float
|
||||
%10 = OpConstantNull %v4float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_133693440 = OpConstant %uint 133693440
|
||||
%uint_524288 = OpConstant %uint 524288
|
||||
%uint_133169152 = OpConstant %uint 133169152
|
||||
%v4uint = OpTypeVector %uint 4
|
||||
%float_1 = OpConstant %float 1
|
||||
%27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
|
||||
%25 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
|
||||
%float_2 = OpConstant %float 2
|
||||
%float_3 = OpConstant %float 3
|
||||
%float_4 = OpConstant %float 4
|
||||
%39 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%36 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
|
||||
%v3bool = OpTypeVector %bool 3
|
||||
%v3float = OpTypeVector %float 3
|
||||
%50 = OpConstantNull %v3float
|
||||
%46 = OpConstantNull %v3float
|
||||
%v3uint = OpTypeVector %uint 3
|
||||
%60 = OpConstantComposite %v3float %float_1 %float_1 %float_1
|
||||
%69 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%55 = OpConstantComposite %v3float %float_1 %float_1 %float_1
|
||||
%63 = OpConstantComposite %v3float %float_1 %float_2 %float_3
|
||||
%v2bool = OpTypeVector %bool 2
|
||||
%v2float = OpTypeVector %float 2
|
||||
%80 = OpConstantNull %v2float
|
||||
%73 = OpConstantNull %v2float
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%90 = OpConstantComposite %v2float %float_1 %float_1
|
||||
%99 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%82 = OpConstantComposite %v2float %float_1 %float_1
|
||||
%90 = OpConstantComposite %v2float %float_1 %float_2
|
||||
%main = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
%18 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%19 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
|
||||
%20 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%21 = OpBitcast %v4uint %11
|
||||
%22 = OpBitwiseAnd %v4uint %21 %18
|
||||
%23 = OpExtInst %v4uint %12 UClamp %22 %19 %20
|
||||
%6 = OpIEqual %v4bool %22 %23
|
||||
%28 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%29 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
|
||||
%30 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%31 = OpBitcast %v4uint %27
|
||||
%32 = OpBitwiseAnd %v4uint %31 %28
|
||||
%33 = OpExtInst %v4uint %12 UClamp %32 %29 %30
|
||||
%25 = OpIEqual %v4bool %32 %33
|
||||
%40 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%41 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
|
||||
%42 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%43 = OpBitcast %v4uint %39
|
||||
%44 = OpBitwiseAnd %v4uint %43 %40
|
||||
%45 = OpExtInst %v4uint %12 UClamp %44 %41 %42
|
||||
%35 = OpIEqual %v4bool %44 %45
|
||||
%52 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%53 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
|
||||
%54 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%55 = OpBitcast %v3uint %50
|
||||
%56 = OpBitwiseAnd %v3uint %55 %52
|
||||
%57 = OpExtInst %v3uint %12 UClamp %56 %53 %54
|
||||
%47 = OpIEqual %v3bool %56 %57
|
||||
%61 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%62 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
|
||||
%63 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%64 = OpBitcast %v3uint %60
|
||||
%65 = OpBitwiseAnd %v3uint %64 %61
|
||||
%66 = OpExtInst %v3uint %12 UClamp %65 %62 %63
|
||||
%59 = OpIEqual %v3bool %65 %66
|
||||
%70 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%71 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
|
||||
%72 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%73 = OpBitcast %v3uint %69
|
||||
%74 = OpBitwiseAnd %v3uint %73 %70
|
||||
%75 = OpExtInst %v3uint %12 UClamp %74 %71 %72
|
||||
%68 = OpIEqual %v3bool %74 %75
|
||||
%82 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440
|
||||
%83 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288
|
||||
%84 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152
|
||||
%85 = OpBitcast %v2uint %80
|
||||
%86 = OpBitwiseAnd %v2uint %85 %82
|
||||
%87 = OpExtInst %v2uint %12 UClamp %86 %83 %84
|
||||
%77 = OpIEqual %v2bool %86 %87
|
||||
%17 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%18 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
|
||||
%19 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%20 = OpBitcast %v4uint %10
|
||||
%21 = OpBitwiseAnd %v4uint %20 %17
|
||||
%22 = OpExtInst %v4uint %11 UClamp %21 %18 %19
|
||||
%5 = OpIEqual %v4bool %21 %22
|
||||
%26 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%27 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
|
||||
%28 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%29 = OpBitcast %v4uint %25
|
||||
%30 = OpBitwiseAnd %v4uint %29 %26
|
||||
%31 = OpExtInst %v4uint %11 UClamp %30 %27 %28
|
||||
%23 = OpIEqual %v4bool %30 %31
|
||||
%37 = OpCompositeConstruct %v4uint %uint_133693440 %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%38 = OpCompositeConstruct %v4uint %uint_524288 %uint_524288 %uint_524288 %uint_524288
|
||||
%39 = OpCompositeConstruct %v4uint %uint_133169152 %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%40 = OpBitcast %v4uint %36
|
||||
%41 = OpBitwiseAnd %v4uint %40 %37
|
||||
%42 = OpExtInst %v4uint %11 UClamp %41 %38 %39
|
||||
%32 = OpIEqual %v4bool %41 %42
|
||||
%48 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%49 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
|
||||
%50 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%51 = OpBitcast %v3uint %46
|
||||
%52 = OpBitwiseAnd %v3uint %51 %48
|
||||
%53 = OpExtInst %v3uint %11 UClamp %52 %49 %50
|
||||
%43 = OpIEqual %v3bool %52 %53
|
||||
%56 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%57 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
|
||||
%58 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%59 = OpBitcast %v3uint %55
|
||||
%60 = OpBitwiseAnd %v3uint %59 %56
|
||||
%61 = OpExtInst %v3uint %11 UClamp %60 %57 %58
|
||||
%54 = OpIEqual %v3bool %60 %61
|
||||
%64 = OpCompositeConstruct %v3uint %uint_133693440 %uint_133693440 %uint_133693440
|
||||
%65 = OpCompositeConstruct %v3uint %uint_524288 %uint_524288 %uint_524288
|
||||
%66 = OpCompositeConstruct %v3uint %uint_133169152 %uint_133169152 %uint_133169152
|
||||
%67 = OpBitcast %v3uint %63
|
||||
%68 = OpBitwiseAnd %v3uint %67 %64
|
||||
%69 = OpExtInst %v3uint %11 UClamp %68 %65 %66
|
||||
%62 = OpIEqual %v3bool %68 %69
|
||||
%75 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440
|
||||
%76 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288
|
||||
%77 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152
|
||||
%78 = OpBitcast %v2uint %73
|
||||
%79 = OpBitwiseAnd %v2uint %78 %75
|
||||
%80 = OpExtInst %v2uint %11 UClamp %79 %76 %77
|
||||
%70 = OpIEqual %v2bool %79 %80
|
||||
%83 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440
|
||||
%84 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288
|
||||
%85 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152
|
||||
%86 = OpBitcast %v2uint %82
|
||||
%87 = OpBitwiseAnd %v2uint %86 %83
|
||||
%88 = OpExtInst %v2uint %11 UClamp %87 %84 %85
|
||||
%81 = OpIEqual %v2bool %87 %88
|
||||
%91 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440
|
||||
%92 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288
|
||||
%93 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152
|
||||
%94 = OpBitcast %v2uint %90
|
||||
%95 = OpBitwiseAnd %v2uint %94 %91
|
||||
%96 = OpExtInst %v2uint %12 UClamp %95 %92 %93
|
||||
%96 = OpExtInst %v2uint %11 UClamp %95 %92 %93
|
||||
%89 = OpIEqual %v2bool %95 %96
|
||||
%100 = OpCompositeConstruct %v2uint %uint_133693440 %uint_133693440
|
||||
%101 = OpCompositeConstruct %v2uint %uint_524288 %uint_524288
|
||||
%102 = OpCompositeConstruct %v2uint %uint_133169152 %uint_133169152
|
||||
%103 = OpBitcast %v2uint %99
|
||||
%104 = OpBitwiseAnd %v2uint %103 %100
|
||||
%105 = OpExtInst %v2uint %12 UClamp %104 %101 %102
|
||||
%98 = OpIEqual %v2bool %104 %105
|
||||
%108 = OpBitcast %uint %float_1
|
||||
%109 = OpBitwiseAnd %uint %108 %uint_133693440
|
||||
%110 = OpExtInst %uint %12 UClamp %109 %uint_524288 %uint_133169152
|
||||
%107 = OpIEqual %bool %109 %110
|
||||
%113 = OpBitcast %uint %float_2
|
||||
%114 = OpBitwiseAnd %uint %113 %uint_133693440
|
||||
%115 = OpExtInst %uint %12 UClamp %114 %uint_524288 %uint_133169152
|
||||
%112 = OpIEqual %bool %114 %115
|
||||
%118 = OpBitcast %uint %float_3
|
||||
%119 = OpBitwiseAnd %uint %118 %uint_133693440
|
||||
%120 = OpExtInst %uint %12 UClamp %119 %uint_524288 %uint_133169152
|
||||
%117 = OpIEqual %bool %119 %120
|
||||
%98 = OpBitcast %uint %float_1
|
||||
%99 = OpBitwiseAnd %uint %98 %uint_133693440
|
||||
%100 = OpExtInst %uint %11 UClamp %99 %uint_524288 %uint_133169152
|
||||
%97 = OpIEqual %bool %99 %100
|
||||
%102 = OpBitcast %uint %float_2
|
||||
%103 = OpBitwiseAnd %uint %102 %uint_133693440
|
||||
%104 = OpExtInst %uint %11 UClamp %103 %uint_524288 %uint_133169152
|
||||
%101 = OpIEqual %bool %103 %104
|
||||
%106 = OpBitcast %uint %float_3
|
||||
%107 = OpBitwiseAnd %uint %106 %uint_133693440
|
||||
%108 = OpExtInst %uint %11 UClamp %107 %uint_524288 %uint_133169152
|
||||
%105 = OpIEqual %bool %107 %108
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(isNormal(vec4<f32>()));
|
||||
ignore(isNormal(vec4<f32>(1.0)));
|
||||
ignore(isNormal(vec4<f32>(1.0, 2.0, 3.0, 4.0)));
|
||||
ignore(isNormal(vec3<f32>()));
|
||||
ignore(isNormal(vec3<f32>(1.0)));
|
||||
ignore(isNormal(vec3<f32>(1.0, 2.0, 3.0)));
|
||||
ignore(isNormal(vec2<f32>()));
|
||||
ignore(isNormal(vec2<f32>(1.0)));
|
||||
ignore(isNormal(vec2<f32>(1.0, 2.0)));
|
||||
ignore(isNormal(1.0));
|
||||
ignore(isNormal(2.0));
|
||||
ignore(isNormal(3.0));
|
||||
_ = isNormal(vec4<f32>());
|
||||
_ = isNormal(vec4<f32>(1.0));
|
||||
_ = isNormal(vec4<f32>(1.0, 2.0, 3.0, 4.0));
|
||||
_ = isNormal(vec3<f32>());
|
||||
_ = isNormal(vec3<f32>(1.0));
|
||||
_ = isNormal(vec3<f32>(1.0, 2.0, 3.0));
|
||||
_ = isNormal(vec2<f32>());
|
||||
_ = isNormal(vec2<f32>(1.0));
|
||||
_ = isNormal(vec2<f32>(1.0, 2.0));
|
||||
_ = isNormal(1.0);
|
||||
_ = isNormal(2.0);
|
||||
_ = isNormal(3.0);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
SKIP: FAILED
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void f() {
|
||||
{
|
||||
|
@ -17,4 +15,3 @@ void f() {
|
|||
}
|
||||
return;
|
||||
}
|
||||
C:\src\tint\test\Shader@0x0000022998AE1EF0(7,11-19): error X3708: continue cannot be used in a switch
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(s);
|
||||
ignore(sc);
|
||||
_ = s;
|
||||
_ = sc;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,5 @@ SamplerComparisonState sc : register(s1, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
s;
|
||||
sc;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(sampler tint_symbol_1 [[sampler(0)]], sampler tint_symbol_2 [[sampler(1)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Bound: 10
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(s);
|
||||
ignore(sc);
|
||||
_ = s;
|
||||
_ = sc;
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,5 @@ Texture2D t_f : register(t0, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(depth2d<float, access::sample> tint_symbol_1 [[texture(0)]]) {
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 10
|
||||
; Bound: 9
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,5 @@ Texture2DArray t_f : register(t0, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(depth2d_array<float, access::sample> tint_symbol_1 [[texture(0)]]) {
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 10
|
||||
; Bound: 9
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,5 @@ TextureCube t_f : register(t0, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(depthcube<float, access::sample> tint_symbol_1 [[texture(0)]]) {
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 10
|
||||
; Bound: 9
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,5 @@ TextureCubeArray t_f : register(t0, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(depthcube_array<float, access::sample> tint_symbol_1 [[texture(0)]]) {
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 10
|
||||
; Bound: 9
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability SampledCubeArray
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
_ = t_f;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ Texture2DMS<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture2d_ms<float, access::read> tint_symbol_1 [[texture(0)]], texture2d_ms<int, access::read> tint_symbol_2 [[texture(1)]], texture2d_ms<uint, access::read> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ Texture1D<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture1d<float, access::sample> tint_symbol_1 [[texture(0)]], texture1d<int, access::sample> tint_symbol_2 [[texture(1)]], texture1d<uint, access::sample> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Sampled1D
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ Texture2D<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture2d<float, access::sample> tint_symbol_1 [[texture(0)]], texture2d<int, access::sample> tint_symbol_2 [[texture(1)]], texture2d<uint, access::sample> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ Texture2DArray<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture2d_array<float, access::sample> tint_symbol_1 [[texture(0)]], texture2d_array<int, access::sample> tint_symbol_2 [[texture(1)]], texture2d_array<uint, access::sample> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ Texture3D<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture3d<float, access::sample> tint_symbol_1 [[texture(0)]], texture3d<int, access::sample> tint_symbol_2 [[texture(1)]], texture3d<uint, access::sample> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ TextureCube<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texturecube<float, access::sample> tint_symbol_1 [[texture(0)]], texturecube<int, access::sample> tint_symbol_2 [[texture(1)]], texturecube<uint, access::sample> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,5 @@ TextureCubeArray<uint4> t_u : register(t2, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_f;
|
||||
t_i;
|
||||
t_u;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texturecube_array<float, access::sample> tint_symbol_1 [[texture(0)]], texturecube_array<int, access::sample> tint_symbol_2 [[texture(1)]], texturecube_array<uint, access::sample> tint_symbol_3 [[texture(2)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 20
|
||||
; Bound: 17
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability SampledCubeArray
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_f);
|
||||
ignore(t_i);
|
||||
ignore(t_u);
|
||||
_ = t_f;
|
||||
_ = t_i;
|
||||
_ = t_u;
|
||||
}
|
||||
|
|
|
@ -17,20 +17,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,21 +17,5 @@ RWTexture1D<float4> t_rgba32float : register(u15, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_rgba8unorm;
|
||||
t_rgba8snorm;
|
||||
t_rgba8uint;
|
||||
t_rgba8sint;
|
||||
t_rgba16uint;
|
||||
t_rgba16sint;
|
||||
t_rgba16float;
|
||||
t_r32uint;
|
||||
t_r32sint;
|
||||
t_r32float;
|
||||
t_rg32uint;
|
||||
t_rg32sint;
|
||||
t_rg32float;
|
||||
t_rgba32uint;
|
||||
t_rgba32sint;
|
||||
t_rgba32float;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,22 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture1d<float, access::write> tint_symbol_1 [[texture(0)]], texture1d<float, access::write> tint_symbol_2 [[texture(1)]], texture1d<uint, access::write> tint_symbol_3 [[texture(2)]], texture1d<int, access::write> tint_symbol_4 [[texture(3)]], texture1d<uint, access::write> tint_symbol_5 [[texture(4)]], texture1d<int, access::write> tint_symbol_6 [[texture(5)]], texture1d<float, access::write> tint_symbol_7 [[texture(6)]], texture1d<uint, access::write> tint_symbol_8 [[texture(7)]], texture1d<int, access::write> tint_symbol_9 [[texture(8)]], texture1d<float, access::write> tint_symbol_10 [[texture(9)]], texture1d<uint, access::write> tint_symbol_11 [[texture(10)]], texture1d<int, access::write> tint_symbol_12 [[texture(11)]], texture1d<float, access::write> tint_symbol_13 [[texture(12)]], texture1d<uint, access::write> tint_symbol_14 [[texture(13)]], texture1d<int, access::write> tint_symbol_15 [[texture(14)]], texture1d<float, access::write> tint_symbol_16 [[texture(15)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
(void) tint_symbol_4;
|
||||
(void) tint_symbol_5;
|
||||
(void) tint_symbol_6;
|
||||
(void) tint_symbol_7;
|
||||
(void) tint_symbol_8;
|
||||
(void) tint_symbol_9;
|
||||
(void) tint_symbol_10;
|
||||
(void) tint_symbol_11;
|
||||
(void) tint_symbol_12;
|
||||
(void) tint_symbol_13;
|
||||
(void) tint_symbol_14;
|
||||
(void) tint_symbol_15;
|
||||
(void) tint_symbol_16;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 72
|
||||
; Bound: 56
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability Image1D
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,20 +17,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,21 +17,5 @@ RWTexture2D<float4> t_rgba32float : register(u15, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_rgba8unorm;
|
||||
t_rgba8snorm;
|
||||
t_rgba8uint;
|
||||
t_rgba8sint;
|
||||
t_rgba16uint;
|
||||
t_rgba16sint;
|
||||
t_rgba16float;
|
||||
t_r32uint;
|
||||
t_r32sint;
|
||||
t_r32float;
|
||||
t_rg32uint;
|
||||
t_rg32sint;
|
||||
t_rg32float;
|
||||
t_rgba32uint;
|
||||
t_rgba32sint;
|
||||
t_rgba32float;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,22 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture2d<float, access::write> tint_symbol_1 [[texture(0)]], texture2d<float, access::write> tint_symbol_2 [[texture(1)]], texture2d<uint, access::write> tint_symbol_3 [[texture(2)]], texture2d<int, access::write> tint_symbol_4 [[texture(3)]], texture2d<uint, access::write> tint_symbol_5 [[texture(4)]], texture2d<int, access::write> tint_symbol_6 [[texture(5)]], texture2d<float, access::write> tint_symbol_7 [[texture(6)]], texture2d<uint, access::write> tint_symbol_8 [[texture(7)]], texture2d<int, access::write> tint_symbol_9 [[texture(8)]], texture2d<float, access::write> tint_symbol_10 [[texture(9)]], texture2d<uint, access::write> tint_symbol_11 [[texture(10)]], texture2d<int, access::write> tint_symbol_12 [[texture(11)]], texture2d<float, access::write> tint_symbol_13 [[texture(12)]], texture2d<uint, access::write> tint_symbol_14 [[texture(13)]], texture2d<int, access::write> tint_symbol_15 [[texture(14)]], texture2d<float, access::write> tint_symbol_16 [[texture(15)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
(void) tint_symbol_4;
|
||||
(void) tint_symbol_5;
|
||||
(void) tint_symbol_6;
|
||||
(void) tint_symbol_7;
|
||||
(void) tint_symbol_8;
|
||||
(void) tint_symbol_9;
|
||||
(void) tint_symbol_10;
|
||||
(void) tint_symbol_11;
|
||||
(void) tint_symbol_12;
|
||||
(void) tint_symbol_13;
|
||||
(void) tint_symbol_14;
|
||||
(void) tint_symbol_15;
|
||||
(void) tint_symbol_16;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 72
|
||||
; Bound: 56
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability StorageImageExtendedFormats
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,20 +17,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,21 +17,5 @@ RWTexture2DArray<float4> t_rgba32float : register(u15, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_rgba8unorm;
|
||||
t_rgba8snorm;
|
||||
t_rgba8uint;
|
||||
t_rgba8sint;
|
||||
t_rgba16uint;
|
||||
t_rgba16sint;
|
||||
t_rgba16float;
|
||||
t_r32uint;
|
||||
t_r32sint;
|
||||
t_r32float;
|
||||
t_rg32uint;
|
||||
t_rg32sint;
|
||||
t_rg32float;
|
||||
t_rgba32uint;
|
||||
t_rgba32sint;
|
||||
t_rgba32float;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,22 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture2d_array<float, access::write> tint_symbol_1 [[texture(0)]], texture2d_array<float, access::write> tint_symbol_2 [[texture(1)]], texture2d_array<uint, access::write> tint_symbol_3 [[texture(2)]], texture2d_array<int, access::write> tint_symbol_4 [[texture(3)]], texture2d_array<uint, access::write> tint_symbol_5 [[texture(4)]], texture2d_array<int, access::write> tint_symbol_6 [[texture(5)]], texture2d_array<float, access::write> tint_symbol_7 [[texture(6)]], texture2d_array<uint, access::write> tint_symbol_8 [[texture(7)]], texture2d_array<int, access::write> tint_symbol_9 [[texture(8)]], texture2d_array<float, access::write> tint_symbol_10 [[texture(9)]], texture2d_array<uint, access::write> tint_symbol_11 [[texture(10)]], texture2d_array<int, access::write> tint_symbol_12 [[texture(11)]], texture2d_array<float, access::write> tint_symbol_13 [[texture(12)]], texture2d_array<uint, access::write> tint_symbol_14 [[texture(13)]], texture2d_array<int, access::write> tint_symbol_15 [[texture(14)]], texture2d_array<float, access::write> tint_symbol_16 [[texture(15)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
(void) tint_symbol_4;
|
||||
(void) tint_symbol_5;
|
||||
(void) tint_symbol_6;
|
||||
(void) tint_symbol_7;
|
||||
(void) tint_symbol_8;
|
||||
(void) tint_symbol_9;
|
||||
(void) tint_symbol_10;
|
||||
(void) tint_symbol_11;
|
||||
(void) tint_symbol_12;
|
||||
(void) tint_symbol_13;
|
||||
(void) tint_symbol_14;
|
||||
(void) tint_symbol_15;
|
||||
(void) tint_symbol_16;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 72
|
||||
; Bound: 56
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability StorageImageExtendedFormats
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,20 +17,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -17,21 +17,5 @@ RWTexture3D<float4> t_rgba32float : register(u15, space0);
|
|||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
t_rgba8unorm;
|
||||
t_rgba8snorm;
|
||||
t_rgba8uint;
|
||||
t_rgba8sint;
|
||||
t_rgba16uint;
|
||||
t_rgba16sint;
|
||||
t_rgba16float;
|
||||
t_r32uint;
|
||||
t_r32sint;
|
||||
t_r32float;
|
||||
t_rg32uint;
|
||||
t_rg32sint;
|
||||
t_rg32float;
|
||||
t_rgba32uint;
|
||||
t_rgba32sint;
|
||||
t_rgba32float;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -2,22 +2,6 @@
|
|||
|
||||
using namespace metal;
|
||||
kernel void tint_symbol(texture3d<float, access::write> tint_symbol_1 [[texture(0)]], texture3d<float, access::write> tint_symbol_2 [[texture(1)]], texture3d<uint, access::write> tint_symbol_3 [[texture(2)]], texture3d<int, access::write> tint_symbol_4 [[texture(3)]], texture3d<uint, access::write> tint_symbol_5 [[texture(4)]], texture3d<int, access::write> tint_symbol_6 [[texture(5)]], texture3d<float, access::write> tint_symbol_7 [[texture(6)]], texture3d<uint, access::write> tint_symbol_8 [[texture(7)]], texture3d<int, access::write> tint_symbol_9 [[texture(8)]], texture3d<float, access::write> tint_symbol_10 [[texture(9)]], texture3d<uint, access::write> tint_symbol_11 [[texture(10)]], texture3d<int, access::write> tint_symbol_12 [[texture(11)]], texture3d<float, access::write> tint_symbol_13 [[texture(12)]], texture3d<uint, access::write> tint_symbol_14 [[texture(13)]], texture3d<int, access::write> tint_symbol_15 [[texture(14)]], texture3d<float, access::write> tint_symbol_16 [[texture(15)]]) {
|
||||
(void) tint_symbol_1;
|
||||
(void) tint_symbol_2;
|
||||
(void) tint_symbol_3;
|
||||
(void) tint_symbol_4;
|
||||
(void) tint_symbol_5;
|
||||
(void) tint_symbol_6;
|
||||
(void) tint_symbol_7;
|
||||
(void) tint_symbol_8;
|
||||
(void) tint_symbol_9;
|
||||
(void) tint_symbol_10;
|
||||
(void) tint_symbol_11;
|
||||
(void) tint_symbol_12;
|
||||
(void) tint_symbol_13;
|
||||
(void) tint_symbol_14;
|
||||
(void) tint_symbol_15;
|
||||
(void) tint_symbol_16;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 72
|
||||
; Bound: 56
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpCapability StorageImageExtendedFormats
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(t_rgba8unorm);
|
||||
ignore(t_rgba8snorm);
|
||||
ignore(t_rgba8uint);
|
||||
ignore(t_rgba8sint);
|
||||
ignore(t_rgba16uint);
|
||||
ignore(t_rgba16sint);
|
||||
ignore(t_rgba16float);
|
||||
ignore(t_r32uint);
|
||||
ignore(t_r32sint);
|
||||
ignore(t_r32float);
|
||||
ignore(t_rg32uint);
|
||||
ignore(t_rg32sint);
|
||||
ignore(t_rg32float);
|
||||
ignore(t_rgba32uint);
|
||||
ignore(t_rgba32sint);
|
||||
ignore(t_rgba32float);
|
||||
_ = t_rgba8unorm;
|
||||
_ = t_rgba8snorm;
|
||||
_ = t_rgba8uint;
|
||||
_ = t_rgba8sint;
|
||||
_ = t_rgba16uint;
|
||||
_ = t_rgba16sint;
|
||||
_ = t_rgba16float;
|
||||
_ = t_r32uint;
|
||||
_ = t_r32sint;
|
||||
_ = t_r32float;
|
||||
_ = t_rg32uint;
|
||||
_ = t_rg32sint;
|
||||
_ = t_rg32float;
|
||||
_ = t_rgba32uint;
|
||||
_ = t_rgba32sint;
|
||||
_ = t_rgba32float;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : array<i32, 3>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
int v[3] = (int[3])0;
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,6 @@ struct tint_array_wrapper {
|
|||
|
||||
kernel void tint_symbol() {
|
||||
tint_array_wrapper v = {};
|
||||
(void) v;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 13
|
||||
; Bound: 12
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue