LukasBanana / LLGL

Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal
BSD 3-Clause "New" or "Revised" License
2.05k stars 139 forks source link

D3D11: Depth texture support #10

Closed LukasBanana closed 6 years ago

LukasBanana commented 6 years ago

The D3D11 renderer currently does not support depth textures (i.e. format TextureFormat::D32 and TextureFormat::D24S8 from the latest "vulkan"-branch).

Notes: Depth textures in D3D11 can have more than one MIP-map, but the GenerateMips function cannot be used with them when they have the bind flag D3D11_BIND_DEPTH_STENCIL. This, however, is only required when the depth-texture is used as depth-stencil attachment (i.e. LLGL::TextureFlags::DepthStencilAttachmentUsage).

LukasBanana commented 6 years ago

Done with 409c1d6.