Public Group

# will this means? SOLVED

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

## Recommended Posts

i found this code in samples at the DIRECTX SDK but i dont know what this means pDeviceSettings->BehaviorFlags &= ~D3DCREATE_HARDWARE_VERTEXPROCESSING; pDeviceSettings->BehaviorFlags &= ~D3DCREATE_PUREDEVICE; pDeviceSettings->BehaviorFlags |= D3DCREATE_SOFTWARE_VERTEXPROCESSING; I know for what are used BehaviorFlags but this &= ~___ is confusing me Thanks Zlatibor

##### Share on other sites
These are bitwise operation. variable &= ~FLAG means to clear that flag. In other words, this bit of code unsets the D3DCREATE_HARDWARE_VERTEXPROCESSING and D3DCREATE_PUREDEVICE flags if they are set, and then sets the D3DCREATE_SOFTWARE_VERTEXPROCESSING flag.

1. 1
2. 2
JoeJ
20
3. 3
4. 4
frob
12
5. 5

• 13
• 18
• 13
• 20
• 13
• ### Forum Statistics

• Total Topics
632194
• Total Posts
3004681

×