34 class VSG_DECLSPEC ResourceHints :
public Inherit<Object, ResourceHints>
39 bool empty()
const noexcept {
return maxSlots.state == 0 && maxSlots.view == 0 && numDescriptorSets == 0 && descriptorPoolSizes.empty(); }
42 uint32_t numDescriptorSets = 0;
43 DescriptorPoolSizes descriptorPoolSizes;
45 VkDeviceSize minimumBufferSize = 16 * 1024 * 1024;
46 VkDeviceSize minimumDeviceMemorySize = 16 * 1024 * 1024;
48 VkDeviceSize minimumStagingBufferSize = 16 * 1024 * 1024;
50 uivec2 numLightsRange = {8, 1024};
51 uivec2 numShadowMapsRange = {0, 64};
52 uivec2 shadowMapSize = {2048, 2048};
54 uint32_t numDatabasePagerReadThreads = 4;
56 DataTransferHint dataTransferHint = COMPILE_TRAVERSAL_USE_TRANSFER_TASK;
57 uint32_t viewportStateHint = DYNAMIC_VIEWPORTSTATE;
60 void read(
Input& input)
override;
61 void write(
Output& output)
const override;
64 virtual ~ResourceHints();