Variable kEntryPointsToValidateFragmentOnlyBuiltinsConst
kEntryPointsToValidateFragmentOnlyBuiltins: {
compute: {
code: string;
expectSuccess: boolean;
};
compute_without_call: {
code: string;
expectSuccess: boolean;
};
fragment: {
code: string;
expectSuccess: boolean;
};
fragment_and_compute: {
code: string;
expectSuccess: boolean;
};
none: {
code: string;
expectSuccess: boolean;
};
vertex: {
code: string;
expectSuccess: boolean;
};
} = ...
Type declaration
compute: {
code: string;
expectSuccess: boolean;
}
code: string
expectSuccess: boolean
compute_without_call: {
code: string;
expectSuccess: boolean;
}
code: string
expectSuccess: boolean
fragment: {
code: string;
expectSuccess: boolean;
}
code: string
expectSuccess: boolean
fragment_and_compute: {
code: string;
expectSuccess: boolean;
}
code: string
expectSuccess: boolean
none: {
code: string;
expectSuccess: boolean;
}
code: string
expectSuccess: boolean
vertex: {
code: string;
expectSuccess: boolean;
}
code: string
expectSuccess: boolean
Use to test that certain WGSL builtins are only available in the fragment stage. Create WGSL that defines a function "foo" and its required variables that uses the builtin being tested. Append it to these code strings then compile. It should succeed or fail based on the value
expectSuccess.See ./textureSample.spec.ts was one example