27 if ((xsub & XRT_SWAPCHAIN_USAGE_COLOR) != 0) {
28 ret |= D3D11_BIND_RENDER_TARGET;
30 if ((xsub & XRT_SWAPCHAIN_USAGE_DEPTH_STENCIL) != 0) {
31 ret |= D3D11_BIND_DEPTH_STENCIL;
33 if ((xsub & XRT_SWAPCHAIN_USAGE_UNORDERED_ACCESS) != 0) {
34 ret |= D3D11_BIND_UNORDERED_ACCESS;
36 if ((xsub & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) {
37 ret |= D3D11_BIND_SHADER_RESOURCE;
xrt_swapchain_usage_bits
Usage of the swapchain images.
Definition: xrt_compositor.h:506
Header declaring XRT graphics interfaces.
A minimal way to include Windows.h.