Enable device features, validation fixes
This commit is contained in:
parent
aad384c3ce
commit
04fdd16076
3 changed files with 7 additions and 11 deletions
|
|
@ -16,6 +16,11 @@ layout (binding = 0) uniform UBO
|
|||
|
||||
layout (location = 0) in int inInstanceIndex[];
|
||||
|
||||
out gl_PerVertex
|
||||
{
|
||||
vec4 gl_Position;
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 instancedPos = ubo.instancePos[inInstanceIndex[0]];
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -169,17 +169,6 @@ public:
|
|||
// Semaphore used to synchronize between offscreen and final scene rendering
|
||||
VkSemaphore offscreenSemaphore = VK_NULL_HANDLE;
|
||||
|
||||
// Device features to be enabled for this example
|
||||
virtual VkPhysicalDeviceFeatures getEnabledFeatures()
|
||||
{
|
||||
VkPhysicalDeviceFeatures enabledFeatures{};
|
||||
enabledFeatures.geometryShader = VK_TRUE;
|
||||
enabledFeatures.shaderClipDistance = VK_TRUE;
|
||||
enabledFeatures.shaderCullDistance = VK_TRUE;
|
||||
enabledFeatures.shaderTessellationAndGeometryPointSize = VK_TRUE;
|
||||
return enabledFeatures;
|
||||
}
|
||||
|
||||
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
|
||||
{
|
||||
enableTextOverlay = true;
|
||||
|
|
@ -196,6 +185,8 @@ public:
|
|||
camera.setPerspective(60.0f, (float)width / (float)height, zNear, zFar);
|
||||
timerSpeed *= 0.25f;
|
||||
paused = true;
|
||||
// Device features to be enabled for this example
|
||||
enabledFeatures.geometryShader = VK_TRUE;
|
||||
}
|
||||
|
||||
~VulkanExample()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue