
168 GPGPU Programming for Games and Science
access view (UAV) means that the shader writes to the resource. In some cases
you can read and write the resource, but this is limited to resources with a na-
tive 32-bit template type; for example,
RWTexture2D<float>. The bind point is
zero, which is needed by the application for attaching the resource for shader
execution. The return type is also
D3D RETURN TYPE FLOAT, but the flag’s
value is f = 0 which implies there is 1 = 1 + (f>>2) component. Thus,
the reflection indicates that
output was declared as RWTexture1D<float>.The
dimension is reported as
D3D SRV DIMENSION TEXTURE1D.
4.3 Devices, Contexts, and Swap