From d70e32b7b1e0197859f79d8d949106896c05ea83 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 3 Jul 2018 19:06:39 -0700 Subject: Moved list of vulkan device features to enable to initialization struct --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index f7e994ae..1df91fa0 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1291,6 +1291,25 @@ namespace Diligent /// or when backbuffer is presented. Uint32 NumCommandsToFlushCmdBuffer = 256; + /// List of device features to be enabled + /// see https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VkPhysicalDeviceFeatures + struct DeviceFeatures + { + bool depthBiasClamp = false; + bool fillModeNonSolid = false; + bool depthClamp = false; + bool independentBlend = false; + bool samplerAnisotropy = true; + bool geometryShader = false; + bool tessellationShader = false; + bool dualSrcBlend = false; + bool multiViewport = false; + bool imageCubeArray = false; + bool textureCompressionBC = false; + bool vertexPipelineStoresAndAtomics = false; + bool fragmentStoresAndAtomics = false; + }EnabledFeatures; + /// Descriptor pool size struct DescriptorPoolSize { -- cgit v1.2.3