@@ -42,7 +42,8 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
42
42
m_limits.UBOAlignment = deviceProperties.properties .limits .minUniformBufferOffsetAlignment ;
43
43
m_limits.SSBOAlignment = deviceProperties.properties .limits .minStorageBufferOffsetAlignment ;
44
44
m_limits.bufferViewAlignment = deviceProperties.properties .limits .minTexelBufferOffsetAlignment ;
45
-
45
+ m_limits.maxSamplerAnisotropyLog2 = std::log2 (deviceProperties.properties .limits .maxSamplerAnisotropy );
46
+
46
47
m_limits.maxUBOSize = deviceProperties.properties .limits .maxUniformBufferRange ;
47
48
m_limits.maxSSBOSize = deviceProperties.properties .limits .maxStorageBufferRange ;
48
49
m_limits.maxBufferViewSizeTexels = deviceProperties.properties .limits .maxTexelBufferElements ;
@@ -138,6 +139,7 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
138
139
m_features.imageCubeArray = features.imageCubeArray ;
139
140
m_features.logicOp = features.logicOp ;
140
141
m_features.multiDrawIndirect = features.multiDrawIndirect ;
142
+ m_features.samplerAnisotropy = features.samplerAnisotropy ;
141
143
m_features.multiViewport = features.multiViewport ;
142
144
m_features.vertexAttributeDouble = features.shaderFloat64 ;
143
145
m_features.dispatchBase = false ; // Todo(achal): Umm.. what is this? Whether you can call VkCmdDispatchBase with non zero base args
@@ -151,7 +153,6 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
151
153
m_features.shaderSubgroupQuad = subgroupProperties.supportedOperations & VK_SUBGROUP_FEATURE_QUAD_BIT;
152
154
m_features.shaderSubgroupQuadAllStages = ((subgroupProperties.supportedStages & asset::IShader::E_SHADER_STAGE::ESS_ALL)
153
155
== asset::IShader::E_SHADER_STAGE::ESS_ALL);
154
-
155
156
156
157
// RayQuery
157
158
if (m_availableFeatureSet.find (VK_KHR_RAY_QUERY_EXTENSION_NAME) != m_availableFeatureSet.end ())
0 commit comments