DDSWithoutD3DX Sample Update

Started by Stefan, July 16, 2010, 05:27:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stefan

QuoteDDSWithoutD3DX Sample Update

Over the past few releases of the DirectX SDK, I've been working on updating our documentation for the DDS file format. The DDSWithoutD3DX  and DDSWithoutD3DX11 samples in the DirectX SDK (June 2010) release demonstrate the details of interpreting the DDS file format for basic 2D textures and 2D texture arrays for Direct3D 9, Direct3D 10.x, and Direct3D 11. Since the June release, I've been expanding the sample to support cubemaps, volume textures, and 1D textures. In the process I also found a number of minor issues with the DDSTextureLoader code and the DDS.H header.

Attached to this post is a ZIP containing an updated DDS.H, DDSTextureLoader.cpp, and DDSTextureLoader.h which you can drop into the DDSWithoutD3DX11 sample code in the DirectX SDK (June 2010). Note that the DDSWithoutD3DX sample is very similiar if you are looking to use it with Direct3D 10.x instead of Direct3D 11, although there are some additional complexities when dealing with cubemap arrays which are supported by the Direct3D 10.1 API with D3D10_FEATURE_LEVEL_10_1 hardware, but not the Direct3D 10.0 API or D3D10_FEATURE_LEVEL_10_0 hardware. A more complete update of both of these samples will be included in a future release of the DirectX SDK.

Download here