File: hlsl.getdimensions.dx10.vert

package info (click to toggle)
glslang 16.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,712 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (27 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SamplerState       g_sSamp : register(s0);

uniform Texture1D <float4> g_tTex1df4 : register(t0);

struct VS_OUTPUT
{
    float4 Pos : SV_Position;
};

VS_OUTPUT main()
{
   VS_OUTPUT vsout;

   uint WidthU;
   uint NumberOfLevelsU;

   // Most of the tests are in the hlsl.getdimensions.dx10.frag on the fragment side.
   // This is just to establish that GetDimensions appears in the vertex stage.

   // 1D, float tx, uint params
   g_tTex1df4 . GetDimensions(WidthU);
   g_tTex1df4 . GetDimensions(6, WidthU, NumberOfLevelsU);

   vsout.Pos = float4(0,0,0,0);

   return vsout;
}