mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 08:05:53 +00:00
Produce a warning if the attribute is missing for integral vertex outputs or fragment inputs. This will become an error in the future, as per the WGSL spec. Add the attribute to E2E tests. Bug: tint:1224 Change-Id: Ia1f353f36cb7db516cf9e8b4877423dec3b3e711 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67160 Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
31 lines
833 B
HLSL
31 lines
833 B
HLSL
struct VertexOutputs {
|
|
int loc0;
|
|
uint loc1;
|
|
float loc2;
|
|
float4 loc3;
|
|
float4 position;
|
|
};
|
|
struct tint_symbol {
|
|
nointerpolation int loc0 : TEXCOORD0;
|
|
nointerpolation uint loc1 : TEXCOORD1;
|
|
float loc2 : TEXCOORD2;
|
|
float4 loc3 : TEXCOORD3;
|
|
float4 position : SV_Position;
|
|
};
|
|
|
|
VertexOutputs main_inner() {
|
|
const VertexOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)};
|
|
return tint_symbol_1;
|
|
}
|
|
|
|
tint_symbol main() {
|
|
const VertexOutputs inner_result = main_inner();
|
|
tint_symbol wrapper_result = (tint_symbol)0;
|
|
wrapper_result.loc0 = inner_result.loc0;
|
|
wrapper_result.loc1 = inner_result.loc1;
|
|
wrapper_result.loc2 = inner_result.loc2;
|
|
wrapper_result.loc3 = inner_result.loc3;
|
|
wrapper_result.position = inner_result.position;
|
|
return wrapper_result;
|
|
}
|