This commit is contained in:
Бранимир Караџић 2023-12-01 22:47:06 -08:00
parent f828394d7a
commit 7af65cbbfc

View File

@ -1541,25 +1541,25 @@ VK_IMPORT_INSTANCE
bx::memSet(&m_deviceFeatures, 0, sizeof(m_deviceFeatures) );
m_deviceFeatures.fullDrawIndexUint32 = supportedFeatures.fullDrawIndexUint32;
m_deviceFeatures.imageCubeArray = supportedFeatures.imageCubeArray && (_init.capabilities & BGFX_CAPS_TEXTURE_CUBE_ARRAY);
m_deviceFeatures.independentBlend = supportedFeatures.independentBlend && (_init.capabilities & BGFX_CAPS_BLEND_INDEPENDENT);
m_deviceFeatures.multiDrawIndirect = supportedFeatures.multiDrawIndirect && (_init.capabilities & BGFX_CAPS_DRAW_INDIRECT);
m_deviceFeatures.drawIndirectFirstInstance = supportedFeatures.drawIndirectFirstInstance && (_init.capabilities & BGFX_CAPS_DRAW_INDIRECT);
m_deviceFeatures.depthClamp = supportedFeatures.depthClamp;
m_deviceFeatures.fillModeNonSolid = supportedFeatures.fillModeNonSolid;
m_deviceFeatures.largePoints = supportedFeatures.largePoints;
m_deviceFeatures.samplerAnisotropy = supportedFeatures.samplerAnisotropy;
m_deviceFeatures.textureCompressionETC2 = supportedFeatures.textureCompressionETC2;
m_deviceFeatures.textureCompressionBC = supportedFeatures.textureCompressionBC;
m_deviceFeatures.vertexPipelineStoresAndAtomics = supportedFeatures.vertexPipelineStoresAndAtomics;
m_deviceFeatures.fragmentStoresAndAtomics = supportedFeatures.fragmentStoresAndAtomics;
m_deviceFeatures.shaderImageGatherExtended = supportedFeatures.shaderImageGatherExtended;
m_deviceFeatures.fullDrawIndexUint32 = supportedFeatures.fullDrawIndexUint32;
m_deviceFeatures.imageCubeArray = supportedFeatures.imageCubeArray && (_init.capabilities & BGFX_CAPS_TEXTURE_CUBE_ARRAY);
m_deviceFeatures.independentBlend = supportedFeatures.independentBlend && (_init.capabilities & BGFX_CAPS_BLEND_INDEPENDENT);
m_deviceFeatures.multiDrawIndirect = supportedFeatures.multiDrawIndirect && (_init.capabilities & BGFX_CAPS_DRAW_INDIRECT);
m_deviceFeatures.drawIndirectFirstInstance = supportedFeatures.drawIndirectFirstInstance && (_init.capabilities & BGFX_CAPS_DRAW_INDIRECT);
m_deviceFeatures.depthClamp = supportedFeatures.depthClamp;
m_deviceFeatures.fillModeNonSolid = supportedFeatures.fillModeNonSolid;
m_deviceFeatures.largePoints = supportedFeatures.largePoints;
m_deviceFeatures.samplerAnisotropy = supportedFeatures.samplerAnisotropy;
m_deviceFeatures.textureCompressionETC2 = supportedFeatures.textureCompressionETC2;
m_deviceFeatures.textureCompressionBC = supportedFeatures.textureCompressionBC;
m_deviceFeatures.vertexPipelineStoresAndAtomics = supportedFeatures.vertexPipelineStoresAndAtomics;
m_deviceFeatures.fragmentStoresAndAtomics = supportedFeatures.fragmentStoresAndAtomics;
m_deviceFeatures.shaderImageGatherExtended = supportedFeatures.shaderImageGatherExtended;
m_deviceFeatures.shaderStorageImageExtendedFormats = supportedFeatures.shaderStorageImageExtendedFormats;
m_deviceFeatures.shaderClipDistance = supportedFeatures.shaderClipDistance;
m_deviceFeatures.shaderCullDistance = supportedFeatures.shaderCullDistance;
m_deviceFeatures.shaderResourceMinLod = supportedFeatures.shaderResourceMinLod;
m_deviceFeatures.geometryShader = supportedFeatures.geometryShader;
m_deviceFeatures.shaderClipDistance = supportedFeatures.shaderClipDistance;
m_deviceFeatures.shaderCullDistance = supportedFeatures.shaderCullDistance;
m_deviceFeatures.shaderResourceMinLod = supportedFeatures.shaderResourceMinLod;
m_deviceFeatures.geometryShader = supportedFeatures.geometryShader;
m_lineAASupport = true
&& s_extension[Extension::EXT_line_rasterization].m_supported