| 927 | } |
| 928 | |
| 929 | size_t Device::getBufferDataAlignment(ResourceBindFlags bindFlags) |
| 930 | { |
| 931 | if (is_set(bindFlags, ResourceBindFlags::Constant)) |
| 932 | return kConstantBufferDataPlacementAlignment; |
| 933 | if (is_set(bindFlags, ResourceBindFlags::Index)) |
| 934 | return kIndexBufferDataPlacementAlignment; |
| 935 | return 1; |
| 936 | } |
| 937 | |
| 938 | void Device::releaseResource(ISlangUnknown* pResource) |
| 939 | { |