Skip to content

Commit

Permalink
Prefer VK_TRUE/VK_FALSE in VkPhysicalDeviceFeatures2 definition
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Sep 16, 2021
1 parent bef2c7b commit 227495c
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions src/refresh/vkpt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1169,61 +1169,61 @@ init_vulkan()
VkPhysicalDeviceFeatures2 device_features = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR,
.features = {
.robustBufferAccess = 1,
.fullDrawIndexUint32 = 1,
.imageCubeArray = 1,
.independentBlend = 1,
.geometryShader = 0,
.tessellationShader = 0,
.sampleRateShading = 0,
.dualSrcBlend = 0,
.logicOp = 0,
.multiDrawIndirect = 0,
.drawIndirectFirstInstance = 0,
.depthClamp = 0,
.depthBiasClamp = 0,
.fillModeNonSolid = 0,
.depthBounds = 0,
.wideLines = 0,
.largePoints = 0,
.alphaToOne = 0,
.multiViewport = 0,
.samplerAnisotropy = 1,
.textureCompressionETC2 = 0,
.textureCompressionASTC_LDR = 0,
.textureCompressionBC = 0,
.occlusionQueryPrecise = 0,
.pipelineStatisticsQuery = 1,
.vertexPipelineStoresAndAtomics = 0,
.fragmentStoresAndAtomics = 0,
.shaderTessellationAndGeometryPointSize = 0,
.shaderImageGatherExtended = 0,
.shaderStorageImageExtendedFormats = 1,
.shaderStorageImageMultisample = 0,
.shaderStorageImageReadWithoutFormat = 0,
.shaderStorageImageWriteWithoutFormat = 0,
.shaderUniformBufferArrayDynamicIndexing = 1,
.shaderSampledImageArrayDynamicIndexing = 1,
.shaderStorageBufferArrayDynamicIndexing = 1,
.shaderStorageImageArrayDynamicIndexing = 1,
.shaderClipDistance = 0,
.shaderCullDistance = 0,
.shaderFloat64 = 0,
.shaderInt64 = 0,
.shaderInt16 = 0,
.shaderResourceResidency = 0,
.shaderResourceMinLod = 0,
.sparseBinding = 1,
.sparseResidencyBuffer = 0,
.sparseResidencyImage2D = 0,
.sparseResidencyImage3D = 0,
.sparseResidency2Samples = 0,
.sparseResidency4Samples = 0,
.sparseResidency8Samples = 0,
.sparseResidency16Samples = 0,
.sparseResidencyAliased = 0,
.variableMultisampleRate = 0,
.inheritedQueries = 0,
.robustBufferAccess = VK_TRUE,
.fullDrawIndexUint32 = VK_TRUE,
.imageCubeArray = VK_TRUE,
.independentBlend = VK_TRUE,
.geometryShader = VK_FALSE,
.tessellationShader = VK_FALSE,
.sampleRateShading = VK_FALSE,
.dualSrcBlend = VK_FALSE,
.logicOp = VK_FALSE,
.multiDrawIndirect = VK_FALSE,
.drawIndirectFirstInstance = VK_FALSE,
.depthClamp = VK_FALSE,
.depthBiasClamp = VK_FALSE,
.fillModeNonSolid = VK_FALSE,
.depthBounds = VK_FALSE,
.wideLines = VK_FALSE,
.largePoints = VK_FALSE,
.alphaToOne = VK_FALSE,
.multiViewport = VK_FALSE,
.samplerAnisotropy = VK_TRUE,
.textureCompressionETC2 = VK_FALSE,
.textureCompressionASTC_LDR = VK_FALSE,
.textureCompressionBC = VK_FALSE,
.occlusionQueryPrecise = VK_FALSE,
.pipelineStatisticsQuery = VK_TRUE,
.vertexPipelineStoresAndAtomics = VK_FALSE,
.fragmentStoresAndAtomics = VK_FALSE,
.shaderTessellationAndGeometryPointSize = VK_FALSE,
.shaderImageGatherExtended = VK_FALSE,
.shaderStorageImageExtendedFormats = VK_TRUE,
.shaderStorageImageMultisample = VK_FALSE,
.shaderStorageImageReadWithoutFormat = VK_FALSE,
.shaderStorageImageWriteWithoutFormat = VK_FALSE,
.shaderUniformBufferArrayDynamicIndexing = VK_TRUE,
.shaderSampledImageArrayDynamicIndexing = VK_TRUE,
.shaderStorageBufferArrayDynamicIndexing = VK_TRUE,
.shaderStorageImageArrayDynamicIndexing = VK_TRUE,
.shaderClipDistance = VK_FALSE,
.shaderCullDistance = VK_FALSE,
.shaderFloat64 = VK_FALSE,
.shaderInt64 = VK_FALSE,
.shaderInt16 = VK_FALSE,
.shaderResourceResidency = VK_FALSE,
.shaderResourceMinLod = VK_FALSE,
.sparseBinding = VK_TRUE,
.sparseResidencyBuffer = VK_FALSE,
.sparseResidencyImage2D = VK_FALSE,
.sparseResidencyImage3D = VK_FALSE,
.sparseResidency2Samples = VK_FALSE,
.sparseResidency4Samples = VK_FALSE,
.sparseResidency8Samples = VK_FALSE,
.sparseResidency16Samples = VK_FALSE,
.sparseResidencyAliased = VK_FALSE,
.variableMultisampleRate = VK_FALSE,
.inheritedQueries = VK_FALSE,
}
};
VkDeviceCreateInfo dev_create_info = {
Expand Down

0 comments on commit 227495c

Please sign in to comment.