Skip to main content
GameDev.net gamedev.net
🔒 Locked

D3DBook DXGI_FORMAT_R16G16B16_FLOAT

Started by B_old Jul 4, 2009 at 8:16 AM 1 replies 1.1k views
Original Post
B_old
B_old
I've been reading the D3D10Book here on the wiki and in the lighting section it says:
Quote:
In particular the application can use DXGI_FORMAT_R16G16B16_FLOAT as shown in the following declaration:
I can't find this format though. Is this an error?
DieterVW
DieterVW
Looking at the formats you'll see that any format that uses more than 16bits will have a size in multiples of 32bits. You'll have to use the larger R16G16B16A16 format instead. There just are no formats of any type that use only 48 bits.
B_old
B_old
Yup, that's what I am doing now. Using R16G16B16A16 and R16G16 to store 2x3 components and swizzling in the shader. Works fine.
I was just a little surprised to see this format mentioned in the book, as it doesn't exist.
Thanks for the reply.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.