Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cast-broadcast.shader_test « tests - github.com/ValveSoftware/vkd3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8b1948f5f3e5ec06ff874556a350b0892e5f16f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[pixel shader]

struct foo
{
    float3 aa;
    float4 bb;
};

struct bar
{
    struct foo aa;
    int2 bb;
    int4 cc[8];
};

float4 main() : SV_TARGET
{
    struct bar p = (struct bar)42;
    return p.aa.bb + p.cc[5];
}

[test]
draw quad
probe all rgba (84.0, 84.0, 84.0, 84.0)