• Advertisement

Archived

This topic is now archived and is closed to further replies.

Unpack DeviceCap (DX8)

This topic is 6077 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Howaday I have a problem with DX8 DeviceCaps I can store the SrcBlendCaps with code like below into a variable. DWORD SrcBlendCaps = d3dcaps.SrcBlendCaps; On my computer SrcBlendCaps has now the value 8191 How do I retrive the caps out of this value, like listed in the DirectX Caps Viewer: Name - Value D3DPBLENDCAPS_ZERO Yes D3DPBLENDCAPS_ONE Yes D3DPBLENDCAPS_SRCCOLOR Yes D3DPBLENDCAPS_INVSRCCOLOR Yes .... Please give me a hint. Your Stone Edited by - Stone on September 5, 2001 11:27:13 AM

Share this post


Link to post
Share on other sites
Advertisement
Bitwise-AND:

if (d3dcaps.SrcBlendCaps & D3DPBLENDCAPS_SRCCOLOR)
{
...
}


if (d3dcaps.SrcBlendCaps & D3DPBLENDCAPS_ZERO)
{
...
}

bool bIsZeroSupported = ((d3dcaps.SrcBlendCaps&D3DPBLENDCAPS_ZERO)==D3DPBLENDCAPS_ZERO);


...etc...

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • Advertisement