intrinsics: Remove ignore()
This has been deprecated since M97. Fixed: tint:1214 Change-Id: I970898f2ae8baf1916e2f8d43230d8b724641730 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78785 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
e1159c7180
commit
b80e2f3b6e
|
@ -5,7 +5,7 @@
|
||||||
### Breaking changes
|
### Breaking changes
|
||||||
|
|
||||||
* The `@interpolate(flat)` attribute must now be specified on integral user-defined IO. [tint:1224](crbug.com/tint/1224)
|
* The `@interpolate(flat)` attribute must now be specified on integral user-defined IO. [tint:1224](crbug.com/tint/1224)
|
||||||
|
* The `ignore()` intrinsic has been removed. Use phoney-assignment instead: `ignore(expr);` -> `_ = expr;`.
|
||||||
|
|
||||||
## Changes for M99
|
## Changes for M99
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -326,7 +326,6 @@ fn frexp<N: num>(vec<N, f32>) -> __frexp_result_vec<N>
|
||||||
[[stage("fragment")]] fn fwidthCoarse<N: num>(vec<N, f32>) -> vec<N, f32>
|
[[stage("fragment")]] fn fwidthCoarse<N: num>(vec<N, f32>) -> vec<N, f32>
|
||||||
[[stage("fragment")]] fn fwidthFine(f32) -> f32
|
[[stage("fragment")]] fn fwidthFine(f32) -> f32
|
||||||
[[stage("fragment")]] fn fwidthFine<N: num>(vec<N, f32>) -> vec<N, f32>
|
[[stage("fragment")]] fn fwidthFine<N: num>(vec<N, f32>) -> vec<N, f32>
|
||||||
[[deprecated]] fn ignore<T>(T)
|
|
||||||
fn inverseSqrt(f32) -> f32
|
fn inverseSqrt(f32) -> f32
|
||||||
fn inverseSqrt<N: num>(vec<N, f32>) -> vec<N, f32>
|
fn inverseSqrt<N: num>(vec<N, f32>) -> vec<N, f32>
|
||||||
[[deprecated]] fn isFinite(f32) -> bool
|
[[deprecated]] fn isFinite(f32) -> bool
|
||||||
|
|
|
@ -2880,7 +2880,7 @@ TEST_F(ResolverTypeConstructorValidationTest, Expr_Constructor_Struct_Empty) {
|
||||||
|
|
||||||
TEST_F(ResolverTypeConstructorValidationTest, NonConstructibleType_Atomic) {
|
TEST_F(ResolverTypeConstructorValidationTest, NonConstructibleType_Atomic) {
|
||||||
WrapInFunction(
|
WrapInFunction(
|
||||||
Call("ignore", Construct(Source{{12, 34}}, ty.atomic(ty.i32()))));
|
Assign(Phony(), Construct(Source{{12, 34}}, ty.atomic(ty.i32()))));
|
||||||
|
|
||||||
EXPECT_FALSE(r()->Resolve());
|
EXPECT_FALSE(r()->Resolve());
|
||||||
EXPECT_EQ(r()->error(), "12:34 error: type is not constructible");
|
EXPECT_EQ(r()->error(), "12:34 error: type is not constructible");
|
||||||
|
@ -2888,8 +2888,8 @@ TEST_F(ResolverTypeConstructorValidationTest, NonConstructibleType_Atomic) {
|
||||||
|
|
||||||
TEST_F(ResolverTypeConstructorValidationTest,
|
TEST_F(ResolverTypeConstructorValidationTest,
|
||||||
NonConstructibleType_AtomicArray) {
|
NonConstructibleType_AtomicArray) {
|
||||||
WrapInFunction(Call(
|
WrapInFunction(Assign(
|
||||||
"ignore", Construct(Source{{12, 34}}, ty.array(ty.atomic(ty.i32()), 4))));
|
Phony(), Construct(Source{{12, 34}}, ty.array(ty.atomic(ty.i32()), 4))));
|
||||||
|
|
||||||
EXPECT_FALSE(r()->Resolve());
|
EXPECT_FALSE(r()->Resolve());
|
||||||
EXPECT_EQ(
|
EXPECT_EQ(
|
||||||
|
@ -2900,7 +2900,7 @@ TEST_F(ResolverTypeConstructorValidationTest,
|
||||||
TEST_F(ResolverTypeConstructorValidationTest,
|
TEST_F(ResolverTypeConstructorValidationTest,
|
||||||
NonConstructibleType_AtomicStructMember) {
|
NonConstructibleType_AtomicStructMember) {
|
||||||
auto* str = Structure("S", {Member("a", ty.atomic(ty.i32()))});
|
auto* str = Structure("S", {Member("a", ty.atomic(ty.i32()))});
|
||||||
WrapInFunction(Call("ignore", Construct(Source{{12, 34}}, ty.Of(str))));
|
WrapInFunction(Assign(Phony(), Construct(Source{{12, 34}}, ty.Of(str))));
|
||||||
|
|
||||||
EXPECT_FALSE(r()->Resolve());
|
EXPECT_FALSE(r()->Resolve());
|
||||||
EXPECT_EQ(r()->error(),
|
EXPECT_EQ(r()->error(),
|
||||||
|
@ -2908,8 +2908,8 @@ TEST_F(ResolverTypeConstructorValidationTest,
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(ResolverTypeConstructorValidationTest, NonConstructibleType_Sampler) {
|
TEST_F(ResolverTypeConstructorValidationTest, NonConstructibleType_Sampler) {
|
||||||
WrapInFunction(Call(
|
WrapInFunction(Assign(
|
||||||
"ignore",
|
Phony(),
|
||||||
Construct(Source{{12, 34}}, ty.sampler(ast::SamplerKind::kSampler))));
|
Construct(Source{{12, 34}}, ty.sampler(ast::SamplerKind::kSampler))));
|
||||||
|
|
||||||
EXPECT_FALSE(r()->Resolve());
|
EXPECT_FALSE(r()->Resolve());
|
||||||
|
|
|
@ -132,9 +132,6 @@ IntrinsicType ParseIntrinsicType(const std::string& name) {
|
||||||
if (name == "fwidthFine") {
|
if (name == "fwidthFine") {
|
||||||
return IntrinsicType::kFwidthFine;
|
return IntrinsicType::kFwidthFine;
|
||||||
}
|
}
|
||||||
if (name == "ignore") {
|
|
||||||
return IntrinsicType::kIgnore;
|
|
||||||
}
|
|
||||||
if (name == "inverseSqrt") {
|
if (name == "inverseSqrt") {
|
||||||
return IntrinsicType::kInverseSqrt;
|
return IntrinsicType::kInverseSqrt;
|
||||||
}
|
}
|
||||||
|
@ -414,8 +411,6 @@ const char* str(IntrinsicType i) {
|
||||||
return "fwidthCoarse";
|
return "fwidthCoarse";
|
||||||
case IntrinsicType::kFwidthFine:
|
case IntrinsicType::kFwidthFine:
|
||||||
return "fwidthFine";
|
return "fwidthFine";
|
||||||
case IntrinsicType::kIgnore:
|
|
||||||
return "ignore";
|
|
||||||
case IntrinsicType::kInverseSqrt:
|
case IntrinsicType::kInverseSqrt:
|
||||||
return "inverseSqrt";
|
return "inverseSqrt";
|
||||||
case IntrinsicType::kIsFinite:
|
case IntrinsicType::kIsFinite:
|
||||||
|
|
|
@ -68,7 +68,6 @@ enum class IntrinsicType {
|
||||||
kFwidth,
|
kFwidth,
|
||||||
kFwidthCoarse,
|
kFwidthCoarse,
|
||||||
kFwidthFine,
|
kFwidthFine,
|
||||||
kIgnore,
|
|
||||||
kInverseSqrt,
|
kInverseSqrt,
|
||||||
kIsFinite,
|
kIsFinite,
|
||||||
kIsInf,
|
kIsInf,
|
||||||
|
|
|
@ -454,7 +454,7 @@ struct SB {
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn main() {
|
fn main() {
|
||||||
ignore(&(sb.arr));
|
_ = &(sb.arr);
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
|
|
@ -922,19 +922,6 @@ void DecomposeMemoryAccess::Run(CloneContext& ctx,
|
||||||
if (auto* call_expr = node->As<ast::CallExpression>()) {
|
if (auto* call_expr = node->As<ast::CallExpression>()) {
|
||||||
auto* call = sem.Get(call_expr);
|
auto* call = sem.Get(call_expr);
|
||||||
if (auto* intrinsic = call->Target()->As<sem::Intrinsic>()) {
|
if (auto* intrinsic = call->Target()->As<sem::Intrinsic>()) {
|
||||||
if (intrinsic->Type() == sem::IntrinsicType::kIgnore) { // [DEPRECATED]
|
|
||||||
// ignore(X)
|
|
||||||
// If X is an memory access, don't transform it into a load, as it
|
|
||||||
// may refer to a structure holding a runtime array, which cannot be
|
|
||||||
// loaded. Instead replace X with the underlying storage / uniform
|
|
||||||
// buffer variable.
|
|
||||||
if (auto access = state.TakeAccess(call_expr->args[0])) {
|
|
||||||
ctx.Replace(call_expr->args[0], [=, &ctx] {
|
|
||||||
return ctx.CloneWithoutTransform(access.var->Declaration());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (intrinsic->Type() == sem::IntrinsicType::kArrayLength) {
|
if (intrinsic->Type() == sem::IntrinsicType::kArrayLength) {
|
||||||
// arrayLength(X)
|
// arrayLength(X)
|
||||||
// Don't convert X into a load, this intrinsic actually requires the
|
// Don't convert X into a load, this intrinsic actually requires the
|
||||||
|
|
|
@ -59,7 +59,7 @@ fn f() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ignore(123);
|
_ = 123;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
i = i + 1;
|
i = i + 1;
|
||||||
|
@ -73,7 +73,7 @@ fn f() {
|
||||||
var i : i32;
|
var i : i32;
|
||||||
i = 0;
|
i = 0;
|
||||||
for(; !((i > 15)); i = (i + 1)) {
|
for(; !((i > 15)); i = (i + 1)) {
|
||||||
ignore(123);
|
_ = 123;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
@ -94,7 +94,7 @@ fn f() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ignore(123);
|
_ = 123;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
i = i + 1;
|
i = i + 1;
|
||||||
|
@ -108,7 +108,7 @@ fn f() {
|
||||||
var i : i32;
|
var i : i32;
|
||||||
i = 0;
|
i = 0;
|
||||||
for(; (i < 15); i = (i + 1)) {
|
for(; (i < 15); i = (i + 1)) {
|
||||||
ignore(123);
|
_ = 123;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
@ -135,8 +135,8 @@ fn f() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ignore(i);
|
_ = i;
|
||||||
ignore(j);
|
_ = j;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
j = (j + 1u);
|
j = (j + 1u);
|
||||||
|
@ -160,8 +160,8 @@ fn f() {
|
||||||
{
|
{
|
||||||
var j : u32 = 0u;
|
var j : u32 = 0u;
|
||||||
for(; !((j >= N)); j = (j + 1u)) {
|
for(; !((j >= N)); j = (j + 1u)) {
|
||||||
ignore(i);
|
_ = i;
|
||||||
ignore(j);
|
_ = j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -180,10 +180,10 @@ fn f() {
|
||||||
i = 0;
|
i = 0;
|
||||||
loop {
|
loop {
|
||||||
if ((i < 15)) {
|
if ((i < 15)) {
|
||||||
ignore(i);
|
_ = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ignore(123);
|
_ = 123;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
i = (i + 1);
|
i = (i + 1);
|
||||||
|
@ -207,10 +207,10 @@ fn f() {
|
||||||
loop {
|
loop {
|
||||||
if ((i < 15)) {
|
if ((i < 15)) {
|
||||||
} else {
|
} else {
|
||||||
ignore(i);
|
_ = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ignore(123);
|
_ = 123;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
i = (i + 1);
|
i = (i + 1);
|
||||||
|
@ -235,7 +235,7 @@ fn f() {
|
||||||
if ((i < 15)) {
|
if ((i < 15)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ignore(123);
|
_ = 123;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
if (false) {
|
if (false) {
|
||||||
|
@ -261,11 +261,11 @@ fn f() {
|
||||||
if ((i < 15)) {
|
if ((i < 15)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ignore(123);
|
_ = 123;
|
||||||
|
|
||||||
continuing {
|
continuing {
|
||||||
i = (i + 1);
|
i = (i + 1);
|
||||||
ignore(i);
|
_ = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ fn test(vert_idx : u32) -> u32 {
|
||||||
@stage(vertex)
|
@stage(vertex)
|
||||||
fn entry(@builtin(vertex_index) vert_idx : u32
|
fn entry(@builtin(vertex_index) vert_idx : u32
|
||||||
) -> @builtin(position) vec4<f32> {
|
) -> @builtin(position) vec4<f32> {
|
||||||
ignore(test(vert_idx));
|
_ = test(vert_idx);
|
||||||
return vec4<f32>();
|
return vec4<f32>();
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
@ -61,7 +61,7 @@ fn tint_symbol(tint_symbol_1 : u32) -> u32 {
|
||||||
|
|
||||||
@stage(vertex)
|
@stage(vertex)
|
||||||
fn tint_symbol_2(@builtin(vertex_index) tint_symbol_1 : u32) -> @builtin(position) vec4<f32> {
|
fn tint_symbol_2(@builtin(vertex_index) tint_symbol_1 : u32) -> @builtin(position) vec4<f32> {
|
||||||
ignore(tint_symbol(tint_symbol_1));
|
_ = tint_symbol(tint_symbol_1);
|
||||||
return vec4<f32>();
|
return vec4<f32>();
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
|
@ -99,7 +99,7 @@ var<workgroup> v : i32;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
ignore(v); // Initialization should be inserted above this statement
|
_ = v; // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -111,7 +111,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
v = i32();
|
v = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(v);
|
_ = v;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ struct Params {
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f(params : Params) {
|
fn f(params : Params) {
|
||||||
ignore(v); // Initialization should be inserted above this statement
|
_ = v; // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -148,7 +148,7 @@ fn f(params : Params) {
|
||||||
v = i32();
|
v = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(v);
|
_ = v;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ var<workgroup> v : i32;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f() {
|
fn f() {
|
||||||
ignore(v); // Initialization should be inserted above this statement
|
_ = v; // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -175,7 +175,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) {
|
||||||
v = i32();
|
v = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(v);
|
_ = v;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -200,9 +200,9 @@ var<workgroup> c : array<S, 32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
ignore(a); // Initialization should be inserted above this statement
|
_ = a; // Initialization should be inserted above this statement
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -237,9 +237,9 @@ fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
c[i_2].y[i] = i32();
|
c[i_2].y[i] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(a);
|
_ = a;
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -264,9 +264,9 @@ var<workgroup> c : array<S, 32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(2, 3)
|
@stage(compute) @workgroup_size(2, 3)
|
||||||
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
ignore(a); // Initialization should be inserted above this statement
|
_ = a; // Initialization should be inserted above this statement
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -301,9 +301,9 @@ fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
c[i_2].y[i] = i32();
|
c[i_2].y[i] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(a);
|
_ = a;
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -330,9 +330,9 @@ var<workgroup> c : array<S, 32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(2, 3, X)
|
@stage(compute) @workgroup_size(2, 3, X)
|
||||||
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
ignore(a); // Initialization should be inserted above this statement
|
_ = a; // Initialization should be inserted above this statement
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect =
|
auto* expect =
|
||||||
|
@ -370,9 +370,9 @@ fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
c[i_2].y[i] = i32();
|
c[i_2].y[i] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(a);
|
_ = a;
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -400,9 +400,9 @@ var<workgroup> c : array<S, 32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(5u, X, 10u)
|
@stage(compute) @workgroup_size(5u, X, 10u)
|
||||||
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
ignore(a); // Initialization should be inserted above this statement
|
_ = a; // Initialization should be inserted above this statement
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect =
|
auto* expect =
|
||||||
|
@ -460,9 +460,9 @@ fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
c[i_5].z[i_2][i][i_1] = i32();
|
c[i_5].z[i_2][i][i_1] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(a);
|
_ = a;
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -486,9 +486,9 @@ var<workgroup> c : array<S, 32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f(@builtin(local_invocation_id) local_invocation_id : vec3<u32>) {
|
fn f(@builtin(local_invocation_id) local_invocation_id : vec3<u32>) {
|
||||||
ignore(a); // Initialization should be inserted above this statement
|
_ = a; // Initialization should be inserted above this statement
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -523,9 +523,9 @@ fn f(@builtin(local_invocation_id) local_invocation_id : vec3<u32>, @builtin(loc
|
||||||
c[i_2].y[i] = i32();
|
c[i_2].y[i] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(a);
|
_ = a;
|
||||||
ignore(b);
|
_ = b;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -549,19 +549,19 @@ var<workgroup> c : array<S, 32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f1() {
|
fn f1() {
|
||||||
ignore(a); // Initialization should be inserted above this statement
|
_ = a; // Initialization should be inserted above this statement
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1, 2, 3)
|
@stage(compute) @workgroup_size(1, 2, 3)
|
||||||
fn f2(@builtin(local_invocation_id) local_invocation_id : vec3<u32>) {
|
fn f2(@builtin(local_invocation_id) local_invocation_id : vec3<u32>) {
|
||||||
ignore(b); // Initialization should be inserted above this statement
|
_ = b; // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(4, 5, 6)
|
@stage(compute) @workgroup_size(4, 5, 6)
|
||||||
fn f3() {
|
fn f3() {
|
||||||
ignore(c); // Initialization should be inserted above this statement
|
_ = c; // Initialization should be inserted above this statement
|
||||||
ignore(a);
|
_ = a;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -591,8 +591,8 @@ fn f1(@builtin(local_invocation_index) local_invocation_index : u32) {
|
||||||
c[i_1].y[i_2] = i32();
|
c[i_1].y[i_2] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(a);
|
_ = a;
|
||||||
ignore(c);
|
_ = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1, 2, 3)
|
@stage(compute) @workgroup_size(1, 2, 3)
|
||||||
|
@ -605,7 +605,7 @@ fn f2(@builtin(local_invocation_id) local_invocation_id : vec3<u32>, @builtin(lo
|
||||||
b.y[i_3] = i32();
|
b.y[i_3] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(b);
|
_ = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(4, 5, 6)
|
@stage(compute) @workgroup_size(4, 5, 6)
|
||||||
|
@ -623,8 +623,8 @@ fn f3(@builtin(local_invocation_index) local_invocation_index_2 : u32) {
|
||||||
c[i_5].y[i_6] = i32();
|
c[i_5].y[i_6] = i32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(c);
|
_ = c;
|
||||||
ignore(a);
|
_ = a;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -638,7 +638,7 @@ TEST_F(ZeroInitWorkgroupMemoryTest, TransitiveUsage) {
|
||||||
var<workgroup> v : i32;
|
var<workgroup> v : i32;
|
||||||
|
|
||||||
fn use_v() {
|
fn use_v() {
|
||||||
ignore(v);
|
_ = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call_use_v() {
|
fn call_use_v() {
|
||||||
|
@ -654,7 +654,7 @@ fn f(@builtin(local_invocation_index) local_idx : u32) {
|
||||||
var<workgroup> v : i32;
|
var<workgroup> v : i32;
|
||||||
|
|
||||||
fn use_v() {
|
fn use_v() {
|
||||||
ignore(v);
|
_ = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call_use_v() {
|
fn call_use_v() {
|
||||||
|
@ -683,8 +683,8 @@ var<workgroup> u : atomic<u32>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f() {
|
fn f() {
|
||||||
ignore(i); // Initialization should be inserted above this statement
|
atomicLoad(&(i)); // Initialization should be inserted above this statement
|
||||||
ignore(u);
|
atomicLoad(&(u));
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -699,8 +699,8 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) {
|
||||||
atomicStore(&(u), u32());
|
atomicStore(&(u), u32());
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(i);
|
atomicLoad(&(i));
|
||||||
ignore(u);
|
atomicLoad(&(u));
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -723,7 +723,7 @@ var<workgroup> w : S;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f() {
|
fn f() {
|
||||||
ignore(w); // Initialization should be inserted above this statement
|
_ = w.a; // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -747,7 +747,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) {
|
||||||
w.c = u32();
|
w.c = u32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(w);
|
_ = w.a;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -762,7 +762,7 @@ var<workgroup> w : array<atomic<u32>, 4>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f() {
|
fn f() {
|
||||||
ignore(w); // Initialization should be inserted above this statement
|
atomicLoad(&w[0]); // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -775,7 +775,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) {
|
||||||
atomicStore(&(w[i]), u32());
|
atomicStore(&(w[i]), u32());
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(w);
|
atomicLoad(&(w[0]));
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
@ -798,7 +798,7 @@ var<workgroup> w : array<S, 4>;
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
@stage(compute) @workgroup_size(1)
|
||||||
fn f() {
|
fn f() {
|
||||||
ignore(w); // Initialization should be inserted above this statement
|
_ = w[0].a; // Initialization should be inserted above this statement
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
auto* expect = R"(
|
auto* expect = R"(
|
||||||
|
@ -823,7 +823,7 @@ fn f(@builtin(local_invocation_index) local_invocation_index : u32) {
|
||||||
w[i_1].c = u32();
|
w[i_1].c = u32();
|
||||||
}
|
}
|
||||||
workgroupBarrier();
|
workgroupBarrier();
|
||||||
ignore(w);
|
_ = w[0].a;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
|
|
@ -529,9 +529,6 @@ bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out,
|
||||||
if (intrinsic->Type() == sem::IntrinsicType::kRadians) {
|
if (intrinsic->Type() == sem::IntrinsicType::kRadians) {
|
||||||
return EmitRadiansCall(out, expr, intrinsic);
|
return EmitRadiansCall(out, expr, intrinsic);
|
||||||
}
|
}
|
||||||
if (intrinsic->Type() == sem::IntrinsicType::kIgnore) {
|
|
||||||
return EmitExpression(out, expr->args[0]); // [DEPRECATED]
|
|
||||||
}
|
|
||||||
if (intrinsic->IsDataPacking()) {
|
if (intrinsic->IsDataPacking()) {
|
||||||
return EmitDataPackingCall(out, expr, intrinsic);
|
return EmitDataPackingCall(out, expr, intrinsic);
|
||||||
}
|
}
|
||||||
|
|
|
@ -690,31 +690,6 @@ void main() {
|
||||||
)");
|
)");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(GlslGeneratorImplTest_Intrinsic, Ignore) {
|
|
||||||
Func("f", {Param("a", ty.i32()), Param("b", ty.i32()), Param("c", ty.i32())},
|
|
||||||
ty.i32(), {Return(Mul(Add("a", "b"), "c"))});
|
|
||||||
|
|
||||||
Func("main", {}, ty.void_(),
|
|
||||||
{CallStmt(Call("ignore", Call("f", 1, 2, 3)))},
|
|
||||||
{
|
|
||||||
Stage(ast::PipelineStage::kCompute),
|
|
||||||
WorkgroupSize(1),
|
|
||||||
});
|
|
||||||
|
|
||||||
GeneratorImpl& gen = Build();
|
|
||||||
|
|
||||||
ASSERT_TRUE(gen.Generate()) << gen.error();
|
|
||||||
EXPECT_EQ(gen.result(), R"(int f(int a, int b, int c) {
|
|
||||||
return ((a + b) * c);
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
f(1, 2, 3);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
)");
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TEST_F(GlslGeneratorImplTest_Intrinsic, DotI32) {
|
TEST_F(GlslGeneratorImplTest_Intrinsic, DotI32) {
|
||||||
|
|
|
@ -1026,9 +1026,6 @@ bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out,
|
||||||
if (intrinsic->Type() == sem::IntrinsicType::kRadians) {
|
if (intrinsic->Type() == sem::IntrinsicType::kRadians) {
|
||||||
return EmitRadiansCall(out, expr, intrinsic);
|
return EmitRadiansCall(out, expr, intrinsic);
|
||||||
}
|
}
|
||||||
if (intrinsic->Type() == sem::IntrinsicType::kIgnore) {
|
|
||||||
return EmitExpression(out, expr->args[0]); // [DEPRECATED]
|
|
||||||
}
|
|
||||||
if (intrinsic->IsDataPacking()) {
|
if (intrinsic->IsDataPacking()) {
|
||||||
return EmitDataPackingCall(out, expr, intrinsic);
|
return EmitDataPackingCall(out, expr, intrinsic);
|
||||||
}
|
}
|
||||||
|
|
|
@ -791,31 +791,6 @@ void main() {
|
||||||
)");
|
)");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(HlslGeneratorImplTest_Intrinsic, Ignore) {
|
|
||||||
Func("f", {Param("a", ty.i32()), Param("b", ty.i32()), Param("c", ty.i32())},
|
|
||||||
ty.i32(), {Return(Mul(Add("a", "b"), "c"))});
|
|
||||||
|
|
||||||
Func("main", {}, ty.void_(), {CallStmt(Call("ignore", Call("f", 1, 2, 3)))},
|
|
||||||
{
|
|
||||||
Stage(ast::PipelineStage::kCompute),
|
|
||||||
WorkgroupSize(1),
|
|
||||||
});
|
|
||||||
|
|
||||||
GeneratorImpl& gen = Build();
|
|
||||||
|
|
||||||
ASSERT_TRUE(gen.Generate()) << gen.error();
|
|
||||||
EXPECT_EQ(gen.result(), R"(int f(int a, int b, int c) {
|
|
||||||
return ((a + b) * c);
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void main() {
|
|
||||||
f(1, 2, 3);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
)");
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace hlsl
|
} // namespace hlsl
|
||||||
} // namespace writer
|
} // namespace writer
|
||||||
|
|
|
@ -627,13 +627,6 @@ bool GeneratorImpl::EmitIntrinsicCall(std::ostream& out,
|
||||||
out << "threadgroup_barrier(mem_flags::mem_threadgroup)";
|
out << "threadgroup_barrier(mem_flags::mem_threadgroup)";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case sem::IntrinsicType::kIgnore: { // [DEPRECATED]
|
|
||||||
out << "(void) ";
|
|
||||||
if (!EmitExpression(out, expr->args[0])) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
case sem::IntrinsicType::kLength: {
|
case sem::IntrinsicType::kLength: {
|
||||||
auto* sem = builder_.Sem().Get(expr->args[0]);
|
auto* sem = builder_.Sem().Get(expr->args[0]);
|
||||||
|
|
|
@ -2460,14 +2460,6 @@ uint32_t Builder::GenerateIntrinsicCall(const sem::Call* call,
|
||||||
case IntrinsicType::kFwidthFine:
|
case IntrinsicType::kFwidthFine:
|
||||||
op = spv::Op::OpFwidthFine;
|
op = spv::Op::OpFwidthFine;
|
||||||
break;
|
break;
|
||||||
case IntrinsicType::kIgnore: // [DEPRECATED]
|
|
||||||
// Evaluate the single argument, return the non-zero result_id which isn't
|
|
||||||
// associated with any op (ignore returns void, so this cannot be used in
|
|
||||||
// an expression).
|
|
||||||
if (!get_arg_as_value_id(0, false)) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return result_id;
|
|
||||||
case IntrinsicType::kIsInf:
|
case IntrinsicType::kIsInf:
|
||||||
op = spv::Op::OpIsInf;
|
op = spv::Op::OpIsInf;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -2556,45 +2556,6 @@ OpReturn
|
||||||
Validate(b);
|
Validate(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(IntrinsicBuilderTest, Call_Ignore) {
|
|
||||||
Func("f", {Param("a", ty.i32()), Param("b", ty.i32()), Param("c", ty.i32())},
|
|
||||||
ty.i32(), {Return(Mul(Add("a", "b"), "c"))});
|
|
||||||
|
|
||||||
Func("main", {}, ty.void_(),
|
|
||||||
{
|
|
||||||
CallStmt(Call("ignore", Call("f", 1, 2, 3))),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Stage(ast::PipelineStage::kCompute),
|
|
||||||
WorkgroupSize(1),
|
|
||||||
});
|
|
||||||
|
|
||||||
spirv::Builder& b = Build();
|
|
||||||
|
|
||||||
ASSERT_TRUE(b.Build()) << b.error();
|
|
||||||
|
|
||||||
ASSERT_EQ(b.functions().size(), 2u);
|
|
||||||
|
|
||||||
auto* expected_types = R"(%2 = OpTypeInt 32 1
|
|
||||||
%1 = OpTypeFunction %2 %2 %2 %2
|
|
||||||
%11 = OpTypeVoid
|
|
||||||
%10 = OpTypeFunction %11
|
|
||||||
%16 = OpConstant %2 1
|
|
||||||
%17 = OpConstant %2 2
|
|
||||||
%18 = OpConstant %2 3
|
|
||||||
)";
|
|
||||||
auto got_types = DumpInstructions(b.types());
|
|
||||||
EXPECT_EQ(expected_types, got_types);
|
|
||||||
|
|
||||||
auto* expected_instructions = R"(%15 = OpFunctionCall %2 %3 %16 %17 %18
|
|
||||||
OpReturn
|
|
||||||
)";
|
|
||||||
auto got_instructions = DumpInstructions(b.functions()[1].instructions());
|
|
||||||
EXPECT_EQ(expected_instructions, got_instructions);
|
|
||||||
|
|
||||||
Validate(b);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace spirv
|
} // namespace spirv
|
||||||
} // namespace writer
|
} // namespace writer
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_multisampled_2d;
|
|
||||||
|
|
||||||
// fn ignore(texture_depth_multisampled_2d)
|
|
||||||
fn ignore_2a6ac2() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
|
||||||
|
|
||||||
fn ignore_2a6ac2() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/2a6ac2.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
|
||||||
|
|
||||||
fn ignore_2a6ac2() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/2a6ac2.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
|
||||||
|
|
||||||
fn ignore_2a6ac2() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/2a6ac2.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
Texture2DMS<float4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void ignore_2a6ac2() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_2a6ac2(depth2d_ms<float, access::read> tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depth2d_ms<float, access::read> tint_symbol_2) {
|
|
||||||
ignore_2a6ac2(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depth2d_ms<float, access::read> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depth2d_ms<float, access::read> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
ignore_2a6ac2(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depth2d_ms<float, access::read> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
ignore_2a6ac2(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_2a6ac2 "ignore_2a6ac2"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float 2D 1 0 1 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_2a6ac2 = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_2a6ac2
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_2a6ac2
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_2a6ac2
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/2a6ac2.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_multisampled_2d;
|
|
||||||
|
|
||||||
fn ignore_2a6ac2() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_2a6ac2();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: sampler;
|
|
||||||
|
|
||||||
// fn ignore(sampler)
|
|
||||||
fn ignore_5016e5() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5016e5();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler;
|
|
||||||
|
|
||||||
fn ignore_5016e5() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5016e5();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/5016e5.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler;
|
|
||||||
|
|
||||||
fn ignore_5016e5() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5016e5();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/5016e5.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler;
|
|
||||||
|
|
||||||
fn ignore_5016e5() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5016e5();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/5016e5.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
SamplerState arg_0 : register(s0, space1);
|
|
||||||
|
|
||||||
void ignore_5016e5() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_5016e5();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_5016e5(sampler tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(sampler tint_symbol_2) {
|
|
||||||
ignore_5016e5(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(sampler tint_symbol_3 [[sampler(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(sampler tint_symbol_4 [[sampler(0)]]) {
|
|
||||||
ignore_5016e5(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(sampler tint_symbol_5 [[sampler(0)]]) {
|
|
||||||
ignore_5016e5(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_5016e5 "ignore_5016e5"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeSampler
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_5016e5 = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_5016e5
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_5016e5
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_5016e5
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/5016e5.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler;
|
|
||||||
|
|
||||||
fn ignore_5016e5() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5016e5();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5016e5();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_cube;
|
|
||||||
|
|
||||||
// fn ignore(texture_depth_cube)
|
|
||||||
fn ignore_509355() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_509355();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
|
||||||
|
|
||||||
fn ignore_509355() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_509355();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/509355.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
|
||||||
|
|
||||||
fn ignore_509355() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_509355();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/509355.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
|
||||||
|
|
||||||
fn ignore_509355() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_509355();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/509355.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
TextureCube arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void ignore_509355() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_509355();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_509355();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_509355();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_509355(depthcube<float, access::sample> tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depthcube<float, access::sample> tint_symbol_2) {
|
|
||||||
ignore_509355(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depthcube<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depthcube<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
ignore_509355(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depthcube<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
ignore_509355(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_509355 "ignore_509355"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float Cube 1 0 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_509355 = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_509355
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_509355
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_509355
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/509355.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube;
|
|
||||||
|
|
||||||
fn ignore_509355() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_509355();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_509355();
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// fn ignore(i32)
|
|
||||||
fn ignore_51aeb7() {
|
|
||||||
ignore(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_51aeb7() {
|
|
||||||
1;
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_51aeb7() {
|
|
||||||
1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_51aeb7() {
|
|
||||||
1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
void ignore_51aeb7() {
|
|
||||||
1;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_51aeb7() {
|
|
||||||
(void) 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main() {
|
|
||||||
float4 const inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
||||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 30
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %ignore_51aeb7 "ignore_51aeb7"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%9 = OpTypeFunction %void
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%int_1 = OpConstant %int 1
|
|
||||||
%16 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_51aeb7 = OpFunction %void None %9
|
|
||||||
%12 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %16
|
|
||||||
%18 = OpLabel
|
|
||||||
%19 = OpFunctionCall %void %ignore_51aeb7
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %9
|
|
||||||
%21 = OpLabel
|
|
||||||
%22 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %22
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %9
|
|
||||||
%25 = OpLabel
|
|
||||||
%26 = OpFunctionCall %void %ignore_51aeb7
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %9
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %ignore_51aeb7
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,23 +0,0 @@
|
||||||
intrinsics/gen/ignore/51aeb7.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
fn ignore_51aeb7() {
|
|
||||||
ignore(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_51aeb7();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_51aeb7();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_external;
|
|
||||||
|
|
||||||
// fn ignore(texture_external)
|
|
||||||
fn ignore_5c9edf() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_external;
|
|
||||||
|
|
||||||
fn ignore_5c9edf() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/5c9edf.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_external;
|
|
||||||
|
|
||||||
fn ignore_5c9edf() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/5c9edf.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_external;
|
|
||||||
|
|
||||||
fn ignore_5c9edf() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/5c9edf.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
Texture2D<float4> arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void ignore_5c9edf() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_5c9edf(texture2d<float, access::sample> tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(texture2d<float, access::sample> tint_symbol_2) {
|
|
||||||
ignore_5c9edf(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(texture2d<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(texture2d<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
ignore_5c9edf(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(texture2d<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
ignore_5c9edf(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_5c9edf "ignore_5c9edf"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float 2D 0 0 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_5c9edf = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_5c9edf
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_5c9edf
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_5c9edf
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/5c9edf.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_external;
|
|
||||||
|
|
||||||
fn ignore_5c9edf() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_5c9edf();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_5c9edf();
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// fn ignore(u32)
|
|
||||||
fn ignore_6698df() {
|
|
||||||
ignore(1u);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_6698df();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1u);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_6698df() {
|
|
||||||
1u;
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_6698df() {
|
|
||||||
1u;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_6698df() {
|
|
||||||
1u;
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1u);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
void ignore_6698df() {
|
|
||||||
1u;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_6698df();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1u);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_6698df() {
|
|
||||||
(void) 1u;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_6698df();
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main() {
|
|
||||||
float4 const inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
||||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1u);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 30
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %ignore_6698df "ignore_6698df"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%9 = OpTypeFunction %void
|
|
||||||
%uint = OpTypeInt 32 0
|
|
||||||
%uint_1 = OpConstant %uint 1
|
|
||||||
%16 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_6698df = OpFunction %void None %9
|
|
||||||
%12 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %16
|
|
||||||
%18 = OpLabel
|
|
||||||
%19 = OpFunctionCall %void %ignore_6698df
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %9
|
|
||||||
%21 = OpLabel
|
|
||||||
%22 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %22
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %9
|
|
||||||
%25 = OpLabel
|
|
||||||
%26 = OpFunctionCall %void %ignore_6698df
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %9
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %ignore_6698df
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,23 +0,0 @@
|
||||||
intrinsics/gen/ignore/6698df.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1u);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
fn ignore_6698df() {
|
|
||||||
ignore(1u);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_6698df();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_6698df();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_cube_array;
|
|
||||||
|
|
||||||
// fn ignore(texture_depth_cube_array)
|
|
||||||
fn ignore_ad88be() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_ad88be();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
|
||||||
|
|
||||||
fn ignore_ad88be() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_ad88be();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/ad88be.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
|
||||||
|
|
||||||
fn ignore_ad88be() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_ad88be();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/ad88be.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
|
||||||
|
|
||||||
fn ignore_ad88be() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_ad88be();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/ad88be.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
TextureCubeArray arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void ignore_ad88be() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_ad88be();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_ad88be(depthcube_array<float, access::sample> tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depthcube_array<float, access::sample> tint_symbol_2) {
|
|
||||||
ignore_ad88be(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depthcube_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depthcube_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
ignore_ad88be(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depthcube_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
ignore_ad88be(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpCapability SampledCubeArray
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_ad88be "ignore_ad88be"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float Cube 1 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_ad88be = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_ad88be
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_ad88be
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_ad88be
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/ad88be.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_cube_array;
|
|
||||||
|
|
||||||
fn ignore_ad88be() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_ad88be();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_ad88be();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: sampler_comparison;
|
|
||||||
|
|
||||||
// fn ignore(sampler_comparison)
|
|
||||||
fn ignore_b469af() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_b469af();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
|
||||||
|
|
||||||
fn ignore_b469af() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_b469af();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/b469af.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
|
||||||
|
|
||||||
fn ignore_b469af() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_b469af();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/b469af.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
|
||||||
|
|
||||||
fn ignore_b469af() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_b469af();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/b469af.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
SamplerComparisonState arg_0 : register(s0, space1);
|
|
||||||
|
|
||||||
void ignore_b469af() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_b469af();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_b469af(sampler tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(sampler tint_symbol_2) {
|
|
||||||
ignore_b469af(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(sampler tint_symbol_3 [[sampler(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(sampler tint_symbol_4 [[sampler(0)]]) {
|
|
||||||
ignore_b469af(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(sampler tint_symbol_5 [[sampler(0)]]) {
|
|
||||||
ignore_b469af(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_b469af "ignore_b469af"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeSampler
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_b469af = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_b469af
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_b469af
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_b469af
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/b469af.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : sampler_comparison;
|
|
||||||
|
|
||||||
fn ignore_b469af() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_b469af();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_b469af();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
|
|
||||||
|
|
||||||
// fn ignore(texture_depth_2d_array)
|
|
||||||
fn ignore_c8a0ee() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
|
||||||
|
|
||||||
fn ignore_c8a0ee() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/c8a0ee.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
|
||||||
|
|
||||||
fn ignore_c8a0ee() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/c8a0ee.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
|
||||||
|
|
||||||
fn ignore_c8a0ee() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/c8a0ee.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
Texture2DArray arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void ignore_c8a0ee() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_c8a0ee(depth2d_array<float, access::sample> tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depth2d_array<float, access::sample> tint_symbol_2) {
|
|
||||||
ignore_c8a0ee(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depth2d_array<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depth2d_array<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
ignore_c8a0ee(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depth2d_array<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
ignore_c8a0ee(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_c8a0ee "ignore_c8a0ee"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float 2D 1 1 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_c8a0ee = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_c8a0ee
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_c8a0ee
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_c8a0ee
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/c8a0ee.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d_array;
|
|
||||||
|
|
||||||
fn ignore_c8a0ee() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_c8a0ee();
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// fn ignore(f32)
|
|
||||||
fn ignore_d91a2f() {
|
|
||||||
ignore(1.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1.0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_d91a2f() {
|
|
||||||
1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_d91a2f() {
|
|
||||||
1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_d91a2f() {
|
|
||||||
1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1.0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
void ignore_d91a2f() {
|
|
||||||
1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1.0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_d91a2f() {
|
|
||||||
(void) 1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main() {
|
|
||||||
float4 const inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1.0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 28
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %ignore_d91a2f "ignore_d91a2f"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%9 = OpTypeFunction %void
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%15 = OpTypeFunction %v4float
|
|
||||||
%ignore_d91a2f = OpFunction %void None %9
|
|
||||||
%12 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %15
|
|
||||||
%17 = OpLabel
|
|
||||||
%18 = OpFunctionCall %void %ignore_d91a2f
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %9
|
|
||||||
%20 = OpLabel
|
|
||||||
%21 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %21
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %9
|
|
||||||
%23 = OpLabel
|
|
||||||
%24 = OpFunctionCall %void %ignore_d91a2f
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %9
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_d91a2f
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,23 +0,0 @@
|
||||||
intrinsics/gen/ignore/d91a2f.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(1.0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
fn ignore_d91a2f() {
|
|
||||||
ignore(1.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_d91a2f();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_d91a2f();
|
|
||||||
}
|
|
|
@ -1,46 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0: texture_depth_2d;
|
|
||||||
|
|
||||||
// fn ignore(texture_depth_2d)
|
|
||||||
fn ignore_e0187b() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_e0187b();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
|
@ -1,87 +0,0 @@
|
||||||
SKIP: FAILED
|
|
||||||
|
|
||||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
|
||||||
|
|
||||||
fn ignore_e0187b() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_e0187b();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/e0187b.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
|
||||||
|
|
||||||
fn ignore_e0187b() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_e0187b();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/e0187b.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
|
||||||
|
|
||||||
fn ignore_e0187b() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_e0187b();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
Failed to generate: intrinsics/gen/ignore/e0187b.wgsl:29:10 error: unknown identifier: 'arg_0'
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
Texture2D arg_0 : register(t0, space1);
|
|
||||||
|
|
||||||
void ignore_e0187b() {
|
|
||||||
arg_0;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_e0187b();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_e0187b(depth2d<float, access::sample> tint_symbol_1) {
|
|
||||||
(void) tint_symbol_1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner(depth2d<float, access::sample> tint_symbol_2) {
|
|
||||||
ignore_e0187b(tint_symbol_2);
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main(depth2d<float, access::sample> tint_symbol_3 [[texture(0)]]) {
|
|
||||||
float4 const inner_result = vertex_main_inner(tint_symbol_3);
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main(depth2d<float, access::sample> tint_symbol_4 [[texture(0)]]) {
|
|
||||||
ignore_e0187b(tint_symbol_4);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main(depth2d<float, access::sample> tint_symbol_5 [[texture(0)]]) {
|
|
||||||
ignore_e0187b(tint_symbol_5);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 31
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %arg_0 "arg_0"
|
|
||||||
OpName %ignore_e0187b "ignore_e0187b"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
OpDecorate %arg_0 DescriptorSet 1
|
|
||||||
OpDecorate %arg_0 Binding 0
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%11 = OpTypeImage %float 2D 1 0 0 1 Unknown
|
|
||||||
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
|
|
||||||
%arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%12 = OpTypeFunction %void
|
|
||||||
%17 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_e0187b = OpFunction %void None %12
|
|
||||||
%15 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %17
|
|
||||||
%19 = OpLabel
|
|
||||||
%20 = OpFunctionCall %void %ignore_e0187b
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %12
|
|
||||||
%22 = OpLabel
|
|
||||||
%23 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %23
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %12
|
|
||||||
%26 = OpLabel
|
|
||||||
%27 = OpFunctionCall %void %ignore_e0187b
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %12
|
|
||||||
%29 = OpLabel
|
|
||||||
%30 = OpFunctionCall %void %ignore_e0187b
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,25 +0,0 @@
|
||||||
intrinsics/gen/ignore/e0187b.wgsl:29:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(arg_0);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
@group(1) @binding(0) var arg_0 : texture_depth_2d;
|
|
||||||
|
|
||||||
fn ignore_e0187b() {
|
|
||||||
ignore(arg_0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_e0187b();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_e0187b();
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
// Copyright 2021 The Tint Authors.
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// File generated by tools/intrinsic-gen
|
|
||||||
// using the template:
|
|
||||||
// test/intrinsics/intrinsics.wgsl.tmpl
|
|
||||||
// and the intrinsic defintion file:
|
|
||||||
// src/intrinsics.def
|
|
||||||
//
|
|
||||||
// Do not modify this file directly
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// fn ignore(bool)
|
|
||||||
fn ignore_f414a6() {
|
|
||||||
ignore(bool());
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_f414a6();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(bool());
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_f414a6() {
|
|
||||||
false;
|
|
||||||
}
|
|
||||||
|
|
||||||
vec4 vertex_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
vec4 inner_result = vertex_main();
|
|
||||||
gl_Position = inner_result;
|
|
||||||
gl_Position.y = -(gl_Position.y);
|
|
||||||
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_f414a6() {
|
|
||||||
false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
fragment_main();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
void ignore_f414a6() {
|
|
||||||
false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void compute_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
compute_main();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(bool());
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
void ignore_f414a6() {
|
|
||||||
false;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value : SV_Position;
|
|
||||||
};
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
tint_symbol vertex_main() {
|
|
||||||
const float4 inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = (tint_symbol)0;
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void fragment_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void compute_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(bool());
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct tint_symbol {
|
|
||||||
float4 value [[position]];
|
|
||||||
};
|
|
||||||
|
|
||||||
void ignore_f414a6() {
|
|
||||||
(void) bool();
|
|
||||||
}
|
|
||||||
|
|
||||||
float4 vertex_main_inner() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return float4();
|
|
||||||
}
|
|
||||||
|
|
||||||
vertex tint_symbol vertex_main() {
|
|
||||||
float4 const inner_result = vertex_main_inner();
|
|
||||||
tint_symbol wrapper_result = {};
|
|
||||||
wrapper_result.value = inner_result;
|
|
||||||
return wrapper_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment void fragment_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void compute_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,65 +0,0 @@
|
||||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(bool());
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 30
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
|
|
||||||
OpEntryPoint Fragment %fragment_main "fragment_main"
|
|
||||||
OpEntryPoint GLCompute %compute_main "compute_main"
|
|
||||||
OpExecutionMode %fragment_main OriginUpperLeft
|
|
||||||
OpExecutionMode %compute_main LocalSize 1 1 1
|
|
||||||
OpName %value "value"
|
|
||||||
OpName %vertex_point_size "vertex_point_size"
|
|
||||||
OpName %ignore_f414a6 "ignore_f414a6"
|
|
||||||
OpName %vertex_main_inner "vertex_main_inner"
|
|
||||||
OpName %vertex_main "vertex_main"
|
|
||||||
OpName %fragment_main "fragment_main"
|
|
||||||
OpName %compute_main "compute_main"
|
|
||||||
OpDecorate %value BuiltIn Position
|
|
||||||
OpDecorate %vertex_point_size BuiltIn PointSize
|
|
||||||
%float = OpTypeFloat 32
|
|
||||||
%v4float = OpTypeVector %float 4
|
|
||||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
||||||
%5 = OpConstantNull %v4float
|
|
||||||
%value = OpVariable %_ptr_Output_v4float Output %5
|
|
||||||
%_ptr_Output_float = OpTypePointer Output %float
|
|
||||||
%8 = OpConstantNull %float
|
|
||||||
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%9 = OpTypeFunction %void
|
|
||||||
%bool = OpTypeBool
|
|
||||||
%15 = OpConstantNull %bool
|
|
||||||
%16 = OpTypeFunction %v4float
|
|
||||||
%float_1 = OpConstant %float 1
|
|
||||||
%ignore_f414a6 = OpFunction %void None %9
|
|
||||||
%12 = OpLabel
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main_inner = OpFunction %v4float None %16
|
|
||||||
%18 = OpLabel
|
|
||||||
%19 = OpFunctionCall %void %ignore_f414a6
|
|
||||||
OpReturnValue %5
|
|
||||||
OpFunctionEnd
|
|
||||||
%vertex_main = OpFunction %void None %9
|
|
||||||
%21 = OpLabel
|
|
||||||
%22 = OpFunctionCall %v4float %vertex_main_inner
|
|
||||||
OpStore %value %22
|
|
||||||
OpStore %vertex_point_size %float_1
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%fragment_main = OpFunction %void None %9
|
|
||||||
%25 = OpLabel
|
|
||||||
%26 = OpFunctionCall %void %ignore_f414a6
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
||||||
%compute_main = OpFunction %void None %9
|
|
||||||
%28 = OpLabel
|
|
||||||
%29 = OpFunctionCall %void %ignore_f414a6
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,23 +0,0 @@
|
||||||
intrinsics/gen/ignore/f414a6.wgsl:28:3 warning: use of deprecated intrinsic
|
|
||||||
ignore(bool());
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
fn ignore_f414a6() {
|
|
||||||
ignore(bool());
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(vertex)
|
|
||||||
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
||||||
ignore_f414a6();
|
|
||||||
return vec4<f32>();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(fragment)
|
|
||||||
fn fragment_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn compute_main() {
|
|
||||||
ignore_f414a6();
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
fn f(a: i32, b: i32, c: i32) -> i32 {
|
|
||||||
return a * b + c;
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn main() {
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
int f(int a, int b, int c) {
|
|
||||||
return ((a * b) + c);
|
|
||||||
}
|
|
||||||
|
|
||||||
void tint_symbol() {
|
|
||||||
f(1, 2, 3);
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
tint_symbol();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
int f(int a, int b, int c) {
|
|
||||||
return ((a * b) + c);
|
|
||||||
}
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void main() {
|
|
||||||
f(1, 2, 3);
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
int f(int a, int b, int c) {
|
|
||||||
return as_type<int>((as_type<uint>(as_type<int>((as_type<uint>(a) * as_type<uint>(b)))) + as_type<uint>(c)));
|
|
||||||
}
|
|
||||||
|
|
||||||
kernel void tint_symbol() {
|
|
||||||
(void) f(1, 2, 3);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
; SPIR-V
|
|
||||||
; Version: 1.3
|
|
||||||
; Generator: Google Tint Compiler; 0
|
|
||||||
; Bound: 19
|
|
||||||
; Schema: 0
|
|
||||||
OpCapability Shader
|
|
||||||
OpMemoryModel Logical GLSL450
|
|
||||||
OpEntryPoint GLCompute %main "main"
|
|
||||||
OpExecutionMode %main LocalSize 1 1 1
|
|
||||||
OpName %f "f"
|
|
||||||
OpName %a "a"
|
|
||||||
OpName %b "b"
|
|
||||||
OpName %c "c"
|
|
||||||
OpName %main "main"
|
|
||||||
%int = OpTypeInt 32 1
|
|
||||||
%1 = OpTypeFunction %int %int %int %int
|
|
||||||
%void = OpTypeVoid
|
|
||||||
%10 = OpTypeFunction %void
|
|
||||||
%int_1 = OpConstant %int 1
|
|
||||||
%int_2 = OpConstant %int 2
|
|
||||||
%int_3 = OpConstant %int 3
|
|
||||||
%f = OpFunction %int None %1
|
|
||||||
%a = OpFunctionParameter %int
|
|
||||||
%b = OpFunctionParameter %int
|
|
||||||
%c = OpFunctionParameter %int
|
|
||||||
%7 = OpLabel
|
|
||||||
%8 = OpIMul %int %a %b
|
|
||||||
%9 = OpIAdd %int %8 %c
|
|
||||||
OpReturnValue %9
|
|
||||||
OpFunctionEnd
|
|
||||||
%main = OpFunction %void None %10
|
|
||||||
%13 = OpLabel
|
|
||||||
%15 = OpFunctionCall %int %f %int_1 %int_2 %int_3
|
|
||||||
OpReturn
|
|
||||||
OpFunctionEnd
|
|
|
@ -1,12 +0,0 @@
|
||||||
intrinsics/ignore/call.wgsl:7:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
fn f(a : i32, b : i32, c : i32) -> i32 {
|
|
||||||
return ((a * b) + c);
|
|
||||||
}
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn main() {
|
|
||||||
ignore(f(1, 2, 3));
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
struct S {
|
|
||||||
arr : array<i32>;
|
|
||||||
};
|
|
||||||
|
|
||||||
@binding(0) @group(0) var<storage, read_write> s : S;
|
|
||||||
|
|
||||||
@stage(compute) @workgroup_size(1)
|
|
||||||
fn main() {
|
|
||||||
ignore(s.arr);
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(s.arr);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#version 310 es
|
|
||||||
precision mediump float;
|
|
||||||
|
|
||||||
layout(binding = 0) buffer S_1 {
|
|
||||||
int arr[];
|
|
||||||
} s;
|
|
||||||
void tint_symbol() {
|
|
||||||
s.arr;
|
|
||||||
}
|
|
||||||
|
|
||||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
||||||
void main() {
|
|
||||||
tint_symbol();
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(s.arr);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
RWByteAddressBuffer s : register(u0, space0);
|
|
||||||
|
|
||||||
[numthreads(1, 1, 1)]
|
|
||||||
void main() {
|
|
||||||
s;
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
intrinsics/ignore/runtime_array.wgsl:9:5 warning: use of deprecated intrinsic
|
|
||||||
ignore(s.arr);
|
|
||||||
^^^^^^
|
|
||||||
|
|
||||||
#include <metal_stdlib>
|
|
||||||
|
|
||||||
using namespace metal;
|
|
||||||
struct S {
|
|
||||||
/* 0x0000 */ int arr[1];
|
|
||||||
};
|
|
||||||
|
|
||||||
kernel void tint_symbol(device S* tint_symbol_1 [[buffer(0)]]) {
|
|
||||||
(void) (*(tint_symbol_1)).arr;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue