mask out content types when indexing into `heap_properties`
@@ -393,8 +393,8 @@ impl d::Device<B> for Device {
let properties = winapi::D3D12_HEAP_PROPERTIES {
Type: winapi::D3D12_HEAP_TYPE_CUSTOM,
- CPUPageProperty: self.heap_properties[mem_type.id].page_property,
- MemoryPoolPreference: self.heap_properties[mem_type.id].memory_pool,
+ CPUPageProperty: self.heap_properties[mem_type.id % 4].page_property,
+ MemoryPoolPreference: self.heap_properties[mem_type.id % 4].memory_pool,
CreationNodeMask: 0,
VisibleNodeMask: 0,
};
