Fix texture conversion array

pull/47/head
Caleb Cornett 2023-10-26 23:03:05 -05:00
parent 94c2d15895
commit 991b37c006
1 changed files with 21 additions and 14 deletions

View File

@ -112,28 +112,35 @@ static DXGI_FORMAT RefreshToD3D11_TextureFormat[] =
{
DXGI_FORMAT_R8G8B8A8_UNORM, /* R8G8B8A8 */
DXGI_FORMAT_B8G8R8A8_UNORM, /* B8G8R8A8 */
DXGI_FORMAT_B5G6R5_UNORM, /* R5G6B5 */
DXGI_FORMAT_B5G5R5A1_UNORM, /* A1R5G5B5 */
DXGI_FORMAT_B5G6R5_UNORM, /* R5G6B5 */ /* FIXME: Swizzle? */
DXGI_FORMAT_B5G5R5A1_UNORM, /* A1R5G5B5 */ /* FIXME: Swizzle? */
DXGI_FORMAT_B4G4R4A4_UNORM, /* B4G4R4A4 */
DXGI_FORMAT_BC1_UNORM, /* BC1 */
DXGI_FORMAT_BC3_UNORM, /* BC3 */
DXGI_FORMAT_BC5_UNORM, /* BC5 */
DXGI_FORMAT_R8G8_SNORM, /* R8G8_SNORM */
DXGI_FORMAT_R8G8B8A8_SNORM, /* R8G8B8A8_SNORM */
DXGI_FORMAT_R10G10B10A2_UNORM, /* A2R10G10B10 */
DXGI_FORMAT_R16G16_UNORM, /* R16G16 */
DXGI_FORMAT_R16G16B16A16_UNORM, /* R16G16B16A16 */
DXGI_FORMAT_R8_UNORM, /* R8 */
DXGI_FORMAT_R32_FLOAT, /* R32_SFLOAT */
DXGI_FORMAT_R32G32_FLOAT, /* R32G32_SFLOAT */
DXGI_FORMAT_R32G32B32A32_FLOAT, /* R32G32B32A32_SFLOAT */
DXGI_FORMAT_BC1_UNORM, /* BC1 */
DXGI_FORMAT_BC2_UNORM, /* BC2 */
DXGI_FORMAT_BC3_UNORM, /* BC3 */
DXGI_FORMAT_BC7_UNORM, /* BC7 */
DXGI_FORMAT_R8G8_SNORM, /* R8G8_SNORM */
DXGI_FORMAT_R8G8B8A8_SNORM, /* R8G8B8A8_SNORM */
DXGI_FORMAT_R16_FLOAT, /* R16_SFLOAT */
DXGI_FORMAT_R16G16_FLOAT, /* R16G16_SFLOAT */
DXGI_FORMAT_R16G16B16A16_FLOAT, /* R16G16B16A16_SFLOAT */
DXGI_FORMAT_D16_UNORM, /* D16 */
DXGI_FORMAT_D32_FLOAT, /* D32 */
DXGI_FORMAT_D24_UNORM_S8_UINT, /* D16S8 */
DXGI_FORMAT_D32_FLOAT_S8X24_UINT/* D32S8 */
DXGI_FORMAT_R32_FLOAT, /* R32_SFLOAT */
DXGI_FORMAT_R32G32_FLOAT, /* R32G32_SFLOAT */
DXGI_FORMAT_R32G32B32A32_FLOAT, /* R32G32B32A32_SFLOAT */
DXGI_FORMAT_R8_UINT, /* R8_UINT */
DXGI_FORMAT_R8G8_UINT, /* R8G8_UINT */
DXGI_FORMAT_R8G8B8A8_UINT, /* R8G8B8A8_UINT */
DXGI_FORMAT_R16_UINT, /* R16_UINT */
DXGI_FORMAT_R16G16_UINT, /* R16G16_UINT */
DXGI_FORMAT_R16G16B16A16_UINT, /* R16G16B16A16_UINT */
DXGI_FORMAT_D16_UNORM, /* D16_UNORM */
DXGI_FORMAT_D32_FLOAT, /* D32_SFLOAT */
DXGI_FORMAT_D24_UNORM_S8_UINT, /* D16_UNORM_S8_UINT */
DXGI_FORMAT_D32_FLOAT_S8X24_UINT/* D32_SFLOAT_S8_UINT */
};
static DXGI_FORMAT RefreshToD3D11_VertexFormat[] =