Skip to content

Commit 04a156d

Browse files
committed
geometryShader feature added
1 parent 2ded7e8 commit 04a156d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

include/nbl/video/IPhysicalDevice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class IPhysicalDevice : public core::Interface, public core::Unmovable
133133
bool drawIndirectCount = false;
134134
bool multiDrawIndirect = false;
135135
bool samplerAnisotropy = false;
136+
bool geometryShader = false;
136137

137138
// RayQuery
138139
bool rayQuery = false;

src/nbl/video/CVulkanPhysicalDevice.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
171171
m_features.shaderSubgroupQuadAllStages = ((subgroupProperties.supportedStages & asset::IShader::E_SHADER_STAGE::ESS_ALL)
172172
== asset::IShader::E_SHADER_STAGE::ESS_ALL);
173173
m_features.inheritedQueries = features.inheritedQueries;
174-
174+
m_features.geometryShader = features.geometryShader;
175175
// RayQuery
176176
if (m_availableFeatureSet.find(VK_KHR_RAY_QUERY_EXTENSION_NAME) != m_availableFeatureSet.end())
177177
m_features.rayQuery = rayQueryFeatures.rayQuery;
@@ -439,6 +439,7 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
439439
// TODO: seperate logical and physical device features.
440440
vk_deviceFeatures2.features.samplerAnisotropy = m_features.samplerAnisotropy;
441441
vk_deviceFeatures2.features.inheritedQueries = m_features.inheritedQueries;
442+
vk_deviceFeatures2.features.geometryShader = m_features.geometryShader;
442443

443444
// Create Device
444445
VkDeviceCreateInfo vk_createInfo = { VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO };

src/nbl/video/IOpenGL_PhysicalDeviceBase.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ class IOpenGL_PhysicalDeviceBase : public IOpenGLPhysicalDeviceBase
353353
{
354354
GetIntegerv(GL_MAX_GEOMETRY_OUTPUT_VERTICES, &num);
355355
m_glfeatures.MaxGeometryVerticesOut = static_cast<uint32_t>(num);
356+
m_features.geometryShader = true;
356357
}
357358

358359
if (m_glfeatures.isFeatureAvailable(m_glfeatures.NBL_EXT_texture_lod_bias))

0 commit comments

Comments
 (0)