mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 20:21:23 +00:00
docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
35 lines
876 B
HLSL
35 lines
876 B
HLSL
static const float2 pos[3] = {float2(0.0f, 0.5f), float2(-0.5f, -0.5f), float2(0.5f, -0.5f)};
|
|
|
|
struct tint_symbol_1 {
|
|
uint VertexIndex : SV_VertexID;
|
|
};
|
|
struct tint_symbol_2 {
|
|
float4 value : SV_Position;
|
|
};
|
|
|
|
float4 vtx_main_inner(uint VertexIndex) {
|
|
return float4(pos[VertexIndex], 0.0f, 1.0f);
|
|
}
|
|
|
|
tint_symbol_2 vtx_main(tint_symbol_1 tint_symbol) {
|
|
const float4 inner_result = vtx_main_inner(tint_symbol.VertexIndex);
|
|
tint_symbol_2 wrapper_result = (tint_symbol_2)0;
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
struct tint_symbol_3 {
|
|
float4 value : SV_Target0;
|
|
};
|
|
|
|
float4 frag_main_inner() {
|
|
return float4(1.0f, 0.0f, 0.0f, 1.0f);
|
|
}
|
|
|
|
tint_symbol_3 frag_main() {
|
|
const float4 inner_result_1 = frag_main_inner();
|
|
tint_symbol_3 wrapper_result_1 = (tint_symbol_3)0;
|
|
wrapper_result_1.value = inner_result_1;
|
|
return wrapper_result_1;
|
|
}
|