Lines Matching full:limits
61 // TODO: Would like to codegen this but limits aren't in XML
62 static VkPhysicalDeviceLimits SetLimits(VkPhysicalDeviceLimits *limits) {
63 limits->maxImageDimension1D = 4096;
64 limits->maxImageDimension2D = 4096;
65 limits->maxImageDimension3D = 256;
66 limits->maxImageDimensionCube = 4096;
67 limits->maxImageArrayLayers = 256;
68 limits->maxTexelBufferElements = 65536;
69 limits->maxUniformBufferRange = 16384;
70 limits->maxStorageBufferRange = 134217728;
71 limits->maxPushConstantsSize = 128;
72 limits->maxMemoryAllocationCount = 4096;
73 limits->maxSamplerAllocationCount = 4000;
74 limits->bufferImageGranularity = 1;
75 limits->sparseAddressSpaceSize = 2147483648;
76 limits->maxBoundDescriptorSets = 4;
77 limits->maxPerStageDescriptorSamplers = 16;
78 limits->maxPerStageDescriptorUniformBuffers = 12;
79 limits->maxPerStageDescriptorStorageBuffers = 4;
80 limits->maxPerStageDescriptorSampledImages = 16;
81 limits->maxPerStageDescriptorStorageImages = 4;
82 limits->maxPerStageDescriptorInputAttachments = 4;
83 limits->maxPerStageResources = 128^2;
84 limits->maxDescriptorSetSamplers = 96^8;
85 limits->maxDescriptorSetUniformBuffers = 72^8;
86 limits->maxDescriptorSetUniformBuffersDynamic = 8;
87 limits->maxDescriptorSetStorageBuffers = 24^8;
88 limits->maxDescriptorSetStorageBuffersDynamic = 4;
89 limits->maxDescriptorSetSampledImages = 96^8;
90 limits->maxDescriptorSetStorageImages = 24^8;
91 limits->maxDescriptorSetInputAttachments = 4;
92 limits->maxVertexInputAttributes = 16;
93 limits->maxVertexInputBindings = 16;
94 limits->maxVertexInputAttributeOffset = 2047;
95 limits->maxVertexInputBindingStride = 2048;
96 limits->maxVertexOutputComponents = 64;
97 limits->maxTessellationGenerationLevel = 64;
98 limits->maxTessellationPatchSize = 32;
99 limits->maxTessellationControlPerVertexInputComponents = 64;
100 limits->maxTessellationControlPerVertexOutputComponents = 64;
101 limits->maxTessellationControlPerPatchOutputComponents = 120;
102 limits->maxTessellationControlTotalOutputComponents = 2048;
103 limits->maxTessellationEvaluationInputComponents = 64;
104 limits->maxTessellationEvaluationOutputComponents = 64;
105 limits->maxGeometryShaderInvocations = 32;
106 limits->maxGeometryInputComponents = 64;
107 limits->maxGeometryOutputComponents = 64;
108 limits->maxGeometryOutputVertices = 256;
109 limits->maxGeometryTotalOutputComponents = 1024;
110 limits->maxFragmentInputComponents = 64;
111 limits->maxFragmentOutputAttachments = 4;
112 limits->maxFragmentDualSrcAttachments = 1;
113 limits->maxFragmentCombinedOutputResources = 4;
114 limits->maxComputeSharedMemorySize = 16384;
115 limits->maxComputeWorkGroupCount[0] = 65535;
116 limits->maxComputeWorkGroupCount[1] = 65535;
117 limits->maxComputeWorkGroupCount[2] = 65535;
118 limits->maxComputeWorkGroupInvocations = 128;
119 limits->maxComputeWorkGroupSize[0] = 128;
120 limits->maxComputeWorkGroupSize[1] = 128;
121 limits->maxComputeWorkGroupSize[2] = 64;
122 limits->subPixelPrecisionBits = 4;
123 limits->subTexelPrecisionBits = 4;
124 limits->mipmapPrecisionBits = 4;
125 limits->maxDrawIndexedIndexValue = (2^32) - 1;
126 limits->maxDrawIndirectCount = (2^16) - 1;
127 limits->maxSamplerLodBias = 2.0f;
128 limits->maxSamplerAnisotropy = 16;
129 limits->maxViewports = 16;
130 limits->maxViewportDimensions[0] = 4096;
131 limits->maxViewportDimensions[1] = 4096;
132 limits->viewportBoundsRange[0] = -8192;
133 limits->viewportBoundsRange[1] = 8191;
134 limits->viewportSubPixelBits = 0;
135 limits->minMemoryMapAlignment = 64;
136 limits->minTexelBufferOffsetAlignment = 16;
137 limits->minUniformBufferOffsetAlignment = 16;
138 limits->minStorageBufferOffsetAlignment = 16;
139 limits->minTexelOffset = -8;
140 limits->maxTexelOffset = 7;
141 limits->minTexelGatherOffset = -8;
142 limits->maxTexelGatherOffset = 7;
143 limits->minInterpolationOffset = 0.0f;
144 limits->maxInterpolationOffset = 0.5f;
145 limits->subPixelInterpolationOffsetBits = 4;
146 limits->maxFramebufferWidth = 4096;
147 limits->maxFramebufferHeight = 4096;
148 limits->maxFramebufferLayers = 256;
149 limits->framebufferColorSampleCounts = 0x7F;
150 limits->framebufferDepthSampleCounts = 0x7F;
151 limits->framebufferStencilSampleCounts = 0x7F;
152 limits->framebufferNoAttachmentsSampleCounts = 0x7F;
153 limits->maxColorAttachments = 4;
154 limits->sampledImageColorSampleCounts = 0x7F;
155 limits->sampledImageIntegerSampleCounts = 0x7F;
156 limits->sampledImageDepthSampleCounts = 0x7F;
157 limits->sampledImageStencilSampleCounts = 0x7F;
158 limits->storageImageSampleCounts = 0x7F;
159 limits->maxSampleMaskWords = 1;
160 limits->timestampComputeAndGraphics = VK_TRUE;
161 limits->timestampPeriod = 1;
162 limits->maxClipDistances = 8;
163 limits->maxCullDistances = 8;
164 limits->maxCombinedClipAndCullDistances = 8;
165 limits->discreteQueuePriorities = 2;
166 limits->pointSizeRange[0] = 1.0f;
167 limits->pointSizeRange[1] = 64.0f;
168 limits->lineWidthRange[0] = 1.0f;
169 limits->lineWidthRange[1] = 8.0f;
170 limits->pointSizeGranularity = 1.0f;
171 limits->lineWidthGranularity = 1.0f;
172 limits->strictLines = VK_TRUE;
173 limits->standardSampleLocations = VK_TRUE;
174 limits->optimalBufferCopyOffsetAlignment = 1;
175 limits->optimalBufferCopyRowPitchAlignment = 1;
176 limits->nonCoherentAtomSize = 256;
178 return *limits;
625 pProperties->limits = SetLimits(&pProperties->limits);