2021-02-17 09:49:59 +00:00
|
|
|
// Copyright(c) 2019, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
// VulkanHpp Samples : PhysicalDeviceFeatures
|
|
|
|
// Get the fine-grained features of the physical devices that can be supported by an implementation.
|
|
|
|
|
|
|
|
// ignore warning 4503: decorated name length exceeded, name was truncated
|
|
|
|
#if defined( _MSC_VER )
|
|
|
|
# pragma warning( disable : 4503 )
|
|
|
|
#elif defined( __GNUC__ )
|
|
|
|
// don't know how to switch off that warning here
|
|
|
|
#else
|
|
|
|
// unknow compiler... just ignore the warnings for yourselves ;)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "../utils/utils.hpp"
|
|
|
|
#include "vulkan/vulkan.hpp"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
static char const * AppName = "PhysicalDeviceFeatures";
|
|
|
|
static char const * EngineName = "Vulkan.hpp";
|
|
|
|
|
|
|
|
int main( int /*argc*/, char ** /*argv*/ )
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2021-06-21 09:32:43 +00:00
|
|
|
vk::raii::Context context;
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::raii::Instance instance = vk::raii::su::makeInstance( context, AppName, EngineName, {}, {}, VK_API_VERSION_1_1 );
|
2021-02-17 09:49:59 +00:00
|
|
|
#if !defined( NDEBUG )
|
2021-06-21 09:32:43 +00:00
|
|
|
vk::raii::DebugUtilsMessengerEXT debugUtilsMessenger( instance, vk::su::makeDebugUtilsMessengerCreateInfoEXT() );
|
2021-02-17 09:49:59 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// enumerate the physicalDevices
|
2021-06-21 09:32:43 +00:00
|
|
|
vk::raii::PhysicalDevices physicalDevices( instance );
|
2021-02-17 09:49:59 +00:00
|
|
|
|
|
|
|
/* VULKAN_KEY_START */
|
|
|
|
|
|
|
|
std::cout << std::boolalpha;
|
|
|
|
for ( size_t i = 0; i < physicalDevices.size(); i++ )
|
|
|
|
{
|
|
|
|
// some features are only valid, if a corresponding extension is available!
|
2022-02-28 09:11:04 +00:00
|
|
|
std::vector<vk::ExtensionProperties> extensionProperties = physicalDevices[i].enumerateDeviceExtensionProperties();
|
2021-02-17 09:49:59 +00:00
|
|
|
|
|
|
|
std::cout << "PhysicalDevice " << i << " :\n";
|
|
|
|
auto features2 = physicalDevices[i]
|
|
|
|
.getFeatures2<vk::PhysicalDeviceFeatures2,
|
|
|
|
vk::PhysicalDevice16BitStorageFeatures,
|
|
|
|
vk::PhysicalDevice8BitStorageFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceASTCDecodeFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceBlendOperationAdvancedFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceBufferDeviceAddressFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceCoherentMemoryFeaturesAMD,
|
|
|
|
vk::PhysicalDeviceComputeShaderDerivativesFeaturesNV,
|
|
|
|
vk::PhysicalDeviceConditionalRenderingFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceCooperativeMatrixFeaturesNV,
|
|
|
|
vk::PhysicalDeviceCornerSampledImageFeaturesNV,
|
|
|
|
vk::PhysicalDeviceCoverageReductionModeFeaturesNV,
|
|
|
|
vk::PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV,
|
|
|
|
vk::PhysicalDeviceDepthClipEnableFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceDescriptorIndexingFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceExclusiveScissorFeaturesNV,
|
|
|
|
vk::PhysicalDeviceFragmentDensityMapFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceFragmentShaderBarycentricFeaturesNV,
|
|
|
|
vk::PhysicalDeviceFragmentShaderInterlockFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceHostQueryResetFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceImagelessFramebufferFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT,
|
|
|
|
vk::PhysicalDeviceInlineUniformBlockFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceLineRasterizationFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceMemoryPriorityFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceMeshShaderFeaturesNV,
|
|
|
|
vk::PhysicalDeviceMultiviewFeatures,
|
|
|
|
vk::PhysicalDevicePipelineExecutablePropertiesFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceProtectedMemoryFeatures,
|
|
|
|
vk::PhysicalDeviceRepresentativeFragmentTestFeaturesNV,
|
|
|
|
vk::PhysicalDeviceSamplerYcbcrConversionFeatures,
|
|
|
|
vk::PhysicalDeviceScalarBlockLayoutFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceShaderAtomicInt64FeaturesKHR,
|
|
|
|
vk::PhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceShaderDrawParametersFeatures,
|
|
|
|
vk::PhysicalDeviceShaderFloat16Int8FeaturesKHR,
|
|
|
|
vk::PhysicalDeviceShaderImageFootprintFeaturesNV,
|
|
|
|
vk::PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL,
|
|
|
|
vk::PhysicalDeviceShaderSMBuiltinsFeaturesNV,
|
|
|
|
vk::PhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceShadingRateImageFeaturesNV,
|
|
|
|
vk::PhysicalDeviceSubgroupSizeControlFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceTexelBufferAlignmentFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceTextureCompressionASTCHDRFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceTransformFeedbackFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceUniformBufferStandardLayoutFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceVariablePointersFeatures,
|
|
|
|
vk::PhysicalDeviceVertexAttributeDivisorFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceVulkanMemoryModelFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceYcbcrImageArraysFeaturesEXT>();
|
|
|
|
vk::PhysicalDeviceFeatures const & features = features2.get<vk::PhysicalDeviceFeatures2>().features;
|
|
|
|
std::cout << "\tFeatures:\n";
|
|
|
|
std::cout << "\t\talphaToOne : " << !!features.alphaToOne << "\n";
|
|
|
|
std::cout << "\t\tdepthBiasClamp : " << !!features.depthBiasClamp << "\n";
|
|
|
|
std::cout << "\t\tdepthBounds : " << !!features.depthBounds << "\n";
|
|
|
|
std::cout << "\t\tdepthClamp : " << !!features.depthClamp << "\n";
|
|
|
|
std::cout << "\t\tdrawIndirectFirstInstance : " << !!features.drawIndirectFirstInstance << "\n";
|
|
|
|
std::cout << "\t\tdualSrcBlend : " << !!features.dualSrcBlend << "\n";
|
|
|
|
std::cout << "\t\tfillModeNonSolid : " << !!features.fillModeNonSolid << "\n";
|
|
|
|
std::cout << "\t\tfragmentStoresAndAtomics : " << !!features.fragmentStoresAndAtomics << "\n";
|
|
|
|
std::cout << "\t\tfullDrawIndexUint32 : " << !!features.fullDrawIndexUint32 << "\n";
|
|
|
|
std::cout << "\t\tgeometryShader : " << !!features.geometryShader << "\n";
|
|
|
|
std::cout << "\t\timageCubeArray : " << !!features.imageCubeArray << "\n";
|
|
|
|
std::cout << "\t\tindependentBlend : " << !!features.independentBlend << "\n";
|
|
|
|
std::cout << "\t\tinheritedQueries : " << !!features.inheritedQueries << "\n";
|
|
|
|
std::cout << "\t\tlargePoints : " << !!features.largePoints << "\n";
|
|
|
|
std::cout << "\t\tlogicOp : " << !!features.logicOp << "\n";
|
|
|
|
std::cout << "\t\tmultiDrawIndirect : " << !!features.multiDrawIndirect << "\n";
|
|
|
|
std::cout << "\t\tmultiViewport : " << !!features.multiViewport << "\n";
|
|
|
|
std::cout << "\t\tocclusionQueryPrecise : " << !!features.occlusionQueryPrecise << "\n";
|
|
|
|
std::cout << "\t\tpipelineStatisticsQuery : " << !!features.pipelineStatisticsQuery << "\n";
|
|
|
|
std::cout << "\t\trobustBufferAccess : " << !!features.robustBufferAccess << "\n";
|
|
|
|
std::cout << "\t\tsamplerAnisotropy : " << !!features.samplerAnisotropy << "\n";
|
|
|
|
std::cout << "\t\tsampleRateShading : " << !!features.sampleRateShading << "\n";
|
|
|
|
std::cout << "\t\tshaderClipDistance : " << !!features.shaderClipDistance << "\n";
|
|
|
|
std::cout << "\t\tshaderCullDistance : " << !!features.shaderCullDistance << "\n";
|
|
|
|
std::cout << "\t\tshaderFloat64 : " << !!features.shaderFloat64 << "\n";
|
|
|
|
std::cout << "\t\tshaderImageGatherExtended : " << !!features.shaderImageGatherExtended << "\n";
|
|
|
|
std::cout << "\t\tshaderInt16 : " << !!features.shaderInt16 << "\n";
|
|
|
|
std::cout << "\t\tshaderInt64 : " << !!features.shaderInt64 << "\n";
|
|
|
|
std::cout << "\t\tshaderResourceMinLod : " << !!features.shaderResourceMinLod << "\n";
|
|
|
|
std::cout << "\t\tshaderResourceResidency : " << !!features.shaderResourceResidency << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshaderSampledImageArrayDynamicIndexing : " << !!features.shaderSampledImageArrayDynamicIndexing << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageBufferArrayDynamicIndexing : " << !!features.shaderStorageBufferArrayDynamicIndexing << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageArrayDynamicIndexing : " << !!features.shaderStorageImageArrayDynamicIndexing << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageExtendedFormats : " << !!features.shaderStorageImageExtendedFormats << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageMultisample : " << !!features.shaderStorageImageMultisample << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageReadWithoutFormat : " << !!features.shaderStorageImageReadWithoutFormat << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageWriteWithoutFormat : " << !!features.shaderStorageImageWriteWithoutFormat << "\n";
|
|
|
|
std::cout << "\t\tshaderTessellationAndGeometryPointSize : " << !!features.shaderTessellationAndGeometryPointSize << "\n";
|
|
|
|
std::cout << "\t\tshaderUniformBufferArrayDynamicIndexing : " << !!features.shaderUniformBufferArrayDynamicIndexing << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tsparseBinding : " << !!features.sparseBinding << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency16Samples : " << !!features.sparseResidency16Samples << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency2Samples : " << !!features.sparseResidency2Samples << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency4Samples : " << !!features.sparseResidency4Samples << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency8Samples : " << !!features.sparseResidency8Samples << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyAliased : " << !!features.sparseResidencyAliased << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyBuffer : " << !!features.sparseResidencyBuffer << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyImage2D : " << !!features.sparseResidencyImage2D << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyImage3D : " << !!features.sparseResidencyImage3D << "\n";
|
|
|
|
std::cout << "\t\ttessellationShader : " << !!features.tessellationShader << "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionASTC_LDR : " << !!features.textureCompressionASTC_LDR << "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionBC : " << !!features.textureCompressionBC << "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionETC2 : " << !!features.textureCompressionETC2 << "\n";
|
|
|
|
std::cout << "\t\tvariableMultisampleRate : " << !!features.variableMultisampleRate << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tvertexPipelineStoresAndAtomics : " << !!features.vertexPipelineStoresAndAtomics << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\twideLines : " << !!features.wideLines << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDevice16BitStorageFeatures const & sixteenBitStorageFeatures = features2.get<vk::PhysicalDevice16BitStorageFeatures>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t16BitStorageFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tstorageBuffer16BitAccess : " << !!sixteenBitStorageFeatures.storageBuffer16BitAccess << "\n";
|
|
|
|
std::cout << "\t\tstorageInputOutput16 : " << !!sixteenBitStorageFeatures.storageInputOutput16 << "\n";
|
|
|
|
std::cout << "\t\tstoragePushConstant16 : " << !!sixteenBitStorageFeatures.storagePushConstant16 << "\n";
|
|
|
|
std::cout << "\t\tuniformAndStorageBuffer16BitAccess : " << !!sixteenBitStorageFeatures.uniformAndStorageBuffer16BitAccess << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_8bit_storage" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDevice8BitStorageFeaturesKHR const & eightBitStorageFeatures = features2.get<vk::PhysicalDevice8BitStorageFeaturesKHR>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t8BitStorageFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tstorageBuffer8BitAccess : " << !!eightBitStorageFeatures.storageBuffer8BitAccess << "\n";
|
|
|
|
std::cout << "\t\tstoragePushConstant8 : " << !!eightBitStorageFeatures.storagePushConstant8 << "\n";
|
|
|
|
std::cout << "\t\tuniformAndStorageBuffer8BitAccess : " << !!eightBitStorageFeatures.uniformAndStorageBuffer8BitAccess << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_astc_decode_mode" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceASTCDecodeFeaturesEXT const & astcDecodeFeatures = features2.get<vk::PhysicalDeviceASTCDecodeFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tASTCDecodeFeature:\n";
|
|
|
|
std::cout << "\t\tdecodeModeSharedExponent : " << !!astcDecodeFeatures.decodeModeSharedExponent << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_blend_operation_advanced" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceBlendOperationAdvancedFeaturesEXT const & blendOperationAdvancedFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceBlendOperationAdvancedFeaturesEXT>();
|
|
|
|
std::cout << "\tBlendOperationAdvancedFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tadvancedBlendCoherentOperations : " << !!blendOperationAdvancedFeatures.advancedBlendCoherentOperations << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_buffer_device_address" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceBufferDeviceAddressFeaturesEXT const & bufferDeviceAddressFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceBufferDeviceAddressFeaturesEXT>();
|
|
|
|
std::cout << "\tBufferDeviceAddressFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tbufferDeviceAddress : " << !!bufferDeviceAddressFeatures.bufferDeviceAddress << "\n";
|
|
|
|
std::cout << "\t\tbufferDeviceAddressCaptureReplay : " << !!bufferDeviceAddressFeatures.bufferDeviceAddressCaptureReplay << "\n";
|
|
|
|
std::cout << "\t\tbufferDeviceAddressMultiDevice : " << !!bufferDeviceAddressFeatures.bufferDeviceAddressMultiDevice << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_AMD_device_coherent_memory" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceCoherentMemoryFeaturesAMD const & coherentMemoryFeatures = features2.get<vk::PhysicalDeviceCoherentMemoryFeaturesAMD>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tCoherentMemoryFeatures:\n";
|
|
|
|
std::cout << "\t\tdeviceCoherentMemory : " << !!coherentMemoryFeatures.deviceCoherentMemory << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_compute_shader_derivatives" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceComputeShaderDerivativesFeaturesNV const & computeShaderDerivativesFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceComputeShaderDerivativesFeaturesNV>();
|
|
|
|
std::cout << "\tComputeShaderDerivativeFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tcomputeDerivativeGroupLinear : " << !!computeShaderDerivativesFeatures.computeDerivativeGroupLinear << "\n";
|
|
|
|
std::cout << "\t\tcomputeDerivativeGroupQuads : " << !!computeShaderDerivativesFeatures.computeDerivativeGroupQuads << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_conditional_rendering" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceConditionalRenderingFeaturesEXT const & conditionalRenderingFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceConditionalRenderingFeaturesEXT>();
|
|
|
|
std::cout << "\tConditionalRenderingFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tconditionalRendering : " << !!conditionalRenderingFeatures.conditionalRendering << "\n";
|
|
|
|
std::cout << "\t\tinheritedConditionalRendering : " << !!conditionalRenderingFeatures.inheritedConditionalRendering << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_cooperative_matrix" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceCooperativeMatrixFeaturesNV const & cooperativeMatrixFeatures = features2.get<vk::PhysicalDeviceCooperativeMatrixFeaturesNV>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tCooperativeMatrixFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tcooperativeMatrix : " << !!cooperativeMatrixFeatures.cooperativeMatrix << "\n";
|
|
|
|
std::cout << "\t\tcooperativeMatrixRobustBufferAccess : " << !!cooperativeMatrixFeatures.cooperativeMatrixRobustBufferAccess << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_corner_sampled_image" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceCornerSampledImageFeaturesNV const & cornerSampledImageFeatures = features2.get<vk::PhysicalDeviceCornerSampledImageFeaturesNV>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tCornerSampledImageFeatures:\n";
|
|
|
|
std::cout << "\t\tcornerSampledImage : " << !!cornerSampledImageFeatures.cornerSampledImage << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_coverage_reduction_mode" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceCoverageReductionModeFeaturesNV const & coverageReductionModeFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceCoverageReductionModeFeaturesNV>();
|
|
|
|
std::cout << "\tCoverageReductionModeFeatures:\n";
|
|
|
|
std::cout << "\t\tcoverageReductionMode : " << !!coverageReductionModeFeatures.coverageReductionMode << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_dedicated_allocation_image_aliasing" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV const & dedicatedAllocationImageAliasingFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV>();
|
|
|
|
std::cout << "\tDedicatedAllocationAliasingFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tdedicatedAllocationImageAliasing : " << !!dedicatedAllocationImageAliasingFeatures.dedicatedAllocationImageAliasing << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_depth_clip_enable" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceDepthClipEnableFeaturesEXT const & depthClipEnabledFeatures = features2.get<vk::PhysicalDeviceDepthClipEnableFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tDepthClipEnabledFeatures:\n";
|
|
|
|
std::cout << "\t\tdepthClipEnable : " << !!depthClipEnabledFeatures.depthClipEnable << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_descriptor_indexing" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceDescriptorIndexingFeaturesEXT const & descriptorIndexingFeatures = features2.get<vk::PhysicalDeviceDescriptorIndexingFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tDescriptorIndexingFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingPartiallyBound : " << !!descriptorIndexingFeatures.descriptorBindingPartiallyBound << "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingSampledImageUpdateAfterBind : " << !!descriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageBufferUpdateAfterBind : " << !!descriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageImageUpdateAfterBind : " << !!descriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind
|
|
|
|
<< "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingStorageTexelBufferUpdateAfterBind : "
|
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingStorageTexelBufferUpdateAfterBind << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingUniformBufferUpdateAfterBind : " << !!descriptorIndexingFeatures.descriptorBindingUniformBufferUpdateAfterBind
|
|
|
|
<< "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingUniformTexelBufferUpdateAfterBind : "
|
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingUniformTexelBufferUpdateAfterBind << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingUpdateUnusedWhilePending : " << !!descriptorIndexingFeatures.descriptorBindingUpdateUnusedWhilePending
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingVariableDescriptorCount : " << !!descriptorIndexingFeatures.descriptorBindingVariableDescriptorCount
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\truntimeDescriptorArray : " << !!descriptorIndexingFeatures.runtimeDescriptorArray << "\n";
|
|
|
|
std::cout << "\t\tshaderInputAttachmentArrayDynamicIndexing : " << !!descriptorIndexingFeatures.shaderInputAttachmentArrayDynamicIndexing
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderInputAttachmentArrayNonUniformIndexing : " << !!descriptorIndexingFeatures.shaderInputAttachmentArrayNonUniformIndexing
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderSampledImageArrayNonUniformIndexing : " << !!descriptorIndexingFeatures.shaderSampledImageArrayNonUniformIndexing
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderStorageBufferArrayNonUniformIndexing : " << !!descriptorIndexingFeatures.shaderStorageBufferArrayNonUniformIndexing
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageArrayNonUniformIndexing : " << !!descriptorIndexingFeatures.shaderStorageImageArrayNonUniformIndexing
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderStorageTexelBufferArrayDynamicIndexing : " << !!descriptorIndexingFeatures.shaderStorageTexelBufferArrayDynamicIndexing
|
|
|
|
<< "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tshaderStorageTexelBufferArrayNonUniformIndexing : "
|
|
|
|
<< !!descriptorIndexingFeatures.shaderStorageTexelBufferArrayNonUniformIndexing << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshaderUniformBufferArrayNonUniformIndexing : " << !!descriptorIndexingFeatures.shaderUniformBufferArrayNonUniformIndexing
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderUniformTexelBufferArrayDynamicIndexing : " << !!descriptorIndexingFeatures.shaderUniformTexelBufferArrayDynamicIndexing
|
|
|
|
<< "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tshaderUniformTexelBufferArrayNonUniformIndexing : "
|
|
|
|
<< !!descriptorIndexingFeatures.shaderUniformTexelBufferArrayNonUniformIndexing << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_scissor_exclusive" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceExclusiveScissorFeaturesNV const & exclusiveScissorFeatures = features2.get<vk::PhysicalDeviceExclusiveScissorFeaturesNV>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tExclusiveScissorFeatures:\n";
|
|
|
|
std::cout << "\t\texclusiveScissor : " << !!exclusiveScissorFeatures.exclusiveScissor << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_fragment_density_map" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceFragmentDensityMapFeaturesEXT const & fragmentDensityMapFeatures = features2.get<vk::PhysicalDeviceFragmentDensityMapFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tFragmentDensityMapFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tfragmentDensityMap : " << !!fragmentDensityMapFeatures.fragmentDensityMap << "\n";
|
|
|
|
std::cout << "\t\tfragmentDensityMapDynamic : " << !!fragmentDensityMapFeatures.fragmentDensityMapDynamic << "\n";
|
|
|
|
std::cout << "\t\tfragmentDensityMapNonSubsampledImages : " << !!fragmentDensityMapFeatures.fragmentDensityMapNonSubsampledImages << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_fragment_shader_barycentric" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceFragmentShaderBarycentricFeaturesNV const & fragmentShaderBarycentricFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceFragmentShaderBarycentricFeaturesNV>();
|
|
|
|
std::cout << "\tFragmentShaderBarycentricFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tfragmentShaderBarycentric : " << !!fragmentShaderBarycentricFeatures.fragmentShaderBarycentric << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_fragment_shader_interlock" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceFragmentShaderInterlockFeaturesEXT const & fragmentShaderInterlockFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceFragmentShaderInterlockFeaturesEXT>();
|
|
|
|
std::cout << "\tFragmentShaderInterlockFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tfragmentShaderPixelInterlock : " << !!fragmentShaderInterlockFeatures.fragmentShaderPixelInterlock << "\n";
|
|
|
|
std::cout << "\t\tfragmentShaderSampleInterlock : " << !!fragmentShaderInterlockFeatures.fragmentShaderSampleInterlock << "\n";
|
|
|
|
std::cout << "\t\tfragmentShaderShadingRateInterlock : " << !!fragmentShaderInterlockFeatures.fragmentShaderShadingRateInterlock << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_host_query_reset" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceHostQueryResetFeaturesEXT const & hostQueryResetFeatures = features2.get<vk::PhysicalDeviceHostQueryResetFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tHostQueryResetFeatures:\n";
|
|
|
|
std::cout << "\t\thostQueryReset : " << !!hostQueryResetFeatures.hostQueryReset << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_imageless_framebuffer" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceImagelessFramebufferFeaturesKHR const & imagelessFramebufferFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceImagelessFramebufferFeaturesKHR>();
|
|
|
|
std::cout << "\tImagelessFramebufferFeatures:\n";
|
|
|
|
std::cout << "\t\timagelessFramebuffer : " << !!imagelessFramebufferFeatures.imagelessFramebuffer << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_index_type_uint8" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT const & indexTypeUint8Features = features2.get<vk::PhysicalDeviceIndexTypeUint8FeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tIndexTypeUint8Features:\n";
|
|
|
|
std::cout << "\t\tindexTypeUint8 : " << !!indexTypeUint8Features.indexTypeUint8 << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_inline_uniform_block" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceInlineUniformBlockFeaturesEXT const & inlineUniformBlockFeatures = features2.get<vk::PhysicalDeviceInlineUniformBlockFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tInlineUniformBlockFeatures:\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingInlineUniformBlockUpdateAfterBind : "
|
|
|
|
<< !!inlineUniformBlockFeatures.descriptorBindingInlineUniformBlockUpdateAfterBind << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tinlineUniformBlock : " << !!inlineUniformBlockFeatures.inlineUniformBlock << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_line_rasterization" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceLineRasterizationFeaturesEXT const & lineRasterizationFeatures = features2.get<vk::PhysicalDeviceLineRasterizationFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tLineRasterizationFeatures:\n";
|
|
|
|
std::cout << "\t\tbresenhamLines : " << !!lineRasterizationFeatures.bresenhamLines << "\n";
|
|
|
|
std::cout << "\t\trectangularLines : " << !!lineRasterizationFeatures.rectangularLines << "\n";
|
|
|
|
std::cout << "\t\tsmoothLines : " << !!lineRasterizationFeatures.smoothLines << "\n";
|
|
|
|
std::cout << "\t\tstippledBresenhamLines : " << !!lineRasterizationFeatures.stippledBresenhamLines << "\n";
|
|
|
|
std::cout << "\t\tstippledRectangularLines : " << !!lineRasterizationFeatures.stippledRectangularLines << "\n";
|
|
|
|
std::cout << "\t\tstippledSmoothLines : " << !!lineRasterizationFeatures.stippledSmoothLines << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_memory_priority" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceMemoryPriorityFeaturesEXT const & memoryPriorityFeatures = features2.get<vk::PhysicalDeviceMemoryPriorityFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tMemoryPriorityFeatures:\n";
|
|
|
|
std::cout << "\t\tmemoryPriority : " << !!memoryPriorityFeatures.memoryPriority << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_mesh_shader" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceMeshShaderFeaturesNV const & meshShaderFeatures = features2.get<vk::PhysicalDeviceMeshShaderFeaturesNV>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tMeshShaderFeatures:\n";
|
|
|
|
std::cout << "\t\tmeshShader : " << !!meshShaderFeatures.meshShader << "\n";
|
|
|
|
std::cout << "\t\ttaskShader : " << !!meshShaderFeatures.taskShader << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceMultiviewFeatures const & multiviewFeatures = features2.get<vk::PhysicalDeviceMultiviewFeatures>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tMultiviewFeatures:\n";
|
|
|
|
std::cout << "\t\tmultiview : " << !!multiviewFeatures.multiview << "\n";
|
|
|
|
std::cout << "\t\tmultiviewGeometryShader : " << !!multiviewFeatures.multiviewGeometryShader << "\n";
|
|
|
|
std::cout << "\t\tmultiviewTessellationShader : " << !!multiviewFeatures.multiviewTessellationShader << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_pipeline_executable_properties" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDevicePipelineExecutablePropertiesFeaturesKHR const & pipelineExecutablePropertiesFeatures =
|
|
|
|
features2.get<vk::PhysicalDevicePipelineExecutablePropertiesFeaturesKHR>();
|
|
|
|
std::cout << "\tPipelineExectuablePropertiesFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tpipelineExecutableInfo : " << !!pipelineExecutablePropertiesFeatures.pipelineExecutableInfo << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceProtectedMemoryFeatures const & protectedMemoryFeatures = features2.get<vk::PhysicalDeviceProtectedMemoryFeatures>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tProtectedMemoryFeatures:\n";
|
|
|
|
std::cout << "\t\tprotectedMemory : " << !!protectedMemoryFeatures.protectedMemory << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_representative_fragment_test" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceRepresentativeFragmentTestFeaturesNV const & representativeFragmentTestFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceRepresentativeFragmentTestFeaturesNV>();
|
|
|
|
std::cout << "\tRepresentativeFragmentTestFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\trepresentativeFragmentTest : " << !!representativeFragmentTestFeatures.representativeFragmentTest << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
vk::PhysicalDeviceSamplerYcbcrConversionFeatures const & samplerYcbcrConversionFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceSamplerYcbcrConversionFeatures>();
|
|
|
|
std::cout << "\tSamplerYcbcrConversionFeatures:\n";
|
|
|
|
std::cout << "\t\tsamplerYcbcrConversion : " << !!samplerYcbcrConversionFeatures.samplerYcbcrConversion << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_scalar_block_layout" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceScalarBlockLayoutFeaturesEXT const & scalarBlockLayoutFeatures = features2.get<vk::PhysicalDeviceScalarBlockLayoutFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tScalarBlockLayoutFeatures:\n";
|
|
|
|
std::cout << "\t\tscalarBlockLayout : " << !!scalarBlockLayoutFeatures.scalarBlockLayout << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_shader_atomic_int64" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceShaderAtomicInt64FeaturesKHR const & shaderAtomicInt64Features = features2.get<vk::PhysicalDeviceShaderAtomicInt64FeaturesKHR>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tShaderAtomicInt64Features:\n";
|
|
|
|
std::cout << "\t\tshaderBufferInt64Atomics : " << !!shaderAtomicInt64Features.shaderBufferInt64Atomics << "\n";
|
|
|
|
std::cout << "\t\tshaderSharedInt64Atomics : " << !!shaderAtomicInt64Features.shaderSharedInt64Atomics << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_shader_demote_to_helper_invocation" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT const & shaderDemoteToHelperInvocationFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT>();
|
|
|
|
std::cout << "\tShaderDemoteToHelperInvocationFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshaderDemoteToHelperInvocation : " << !!shaderDemoteToHelperInvocationFeatures.shaderDemoteToHelperInvocation << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceShaderDrawParametersFeatures const & shaderDrawParametersFeature = features2.get<vk::PhysicalDeviceShaderDrawParametersFeatures>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tShaderDrawParametersFeature:\n";
|
|
|
|
std::cout << "\t\tshaderDrawParameters : " << !!shaderDrawParametersFeature.shaderDrawParameters << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_shader_float16_int8" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceShaderFloat16Int8FeaturesKHR const & shaderFloat16Int8Features = features2.get<vk::PhysicalDeviceShaderFloat16Int8FeaturesKHR>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tShaderFloat16Int8Features:\n";
|
|
|
|
std::cout << "\t\tshaderFloat16 : " << !!shaderFloat16Int8Features.shaderFloat16 << "\n";
|
|
|
|
std::cout << "\t\tshaderInt8 : " << !!shaderFloat16Int8Features.shaderInt8 << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_shader_image_footprint" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceShaderImageFootprintFeaturesNV const & shaderImageFootprintFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderImageFootprintFeaturesNV>();
|
|
|
|
std::cout << "\tShaderImageFootprintFeatures:\n";
|
|
|
|
std::cout << "\t\timageFootprint : " << !!shaderImageFootprintFeatures.imageFootprint << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_INTEL_shader_integer_functions2" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL const & shaderIntegerFunctions2Features =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL>();
|
|
|
|
std::cout << "\tShaderIntegerFunctions2Features:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshaderIntegerFunctions2 : " << !!shaderIntegerFunctions2Features.shaderIntegerFunctions2 << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_shader_sm_builtins" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceShaderSMBuiltinsFeaturesNV const & shaderSMBuiltinsFeatures = features2.get<vk::PhysicalDeviceShaderSMBuiltinsFeaturesNV>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tShaderSMBuiltinsFeatures:\n";
|
|
|
|
std::cout << "\t\tshaderSMBuiltins : " << !!shaderSMBuiltinsFeatures.shaderSMBuiltins << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_shader_subgroup_extended_types" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR const & shaderSubgroupExtendedTypesFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR>();
|
|
|
|
std::cout << "\tShaderSubgroupExtendedTypeFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshaderSubgroupExtendedTypes : " << !!shaderSubgroupExtendedTypesFeatures.shaderSubgroupExtendedTypes << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_shading_rate_image" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceShadingRateImageFeaturesNV const & shadingRateImageFeatures = features2.get<vk::PhysicalDeviceShadingRateImageFeaturesNV>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tShadingRateImageFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tshadingRateCoarseSampleOrder : " << !!shadingRateImageFeatures.shadingRateCoarseSampleOrder << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\t\tshadingRateImage : " << !!shadingRateImageFeatures.shadingRateImage << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_subgroup_size_control" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceSubgroupSizeControlFeaturesEXT const & subgroupSizeControlFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceSubgroupSizeControlFeaturesEXT>();
|
|
|
|
std::cout << "\tSubgroupSizeControlFeatures:\n";
|
|
|
|
std::cout << "\t\tcomputeFullSubgroups : " << !!subgroupSizeControlFeatures.computeFullSubgroups << "\n";
|
|
|
|
std::cout << "\t\tsubgroupSizeControl : " << !!subgroupSizeControlFeatures.subgroupSizeControl << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_texel_buffer_alignment" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceTexelBufferAlignmentFeaturesEXT const & texelBufferAlignmentFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceTexelBufferAlignmentFeaturesEXT>();
|
|
|
|
std::cout << "\tTexelBufferAlignmentFeatures:\n";
|
|
|
|
std::cout << "\t\ttexelBufferAlignment : " << !!texelBufferAlignmentFeatures.texelBufferAlignment << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_texture_compression_astc_hdr" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceTextureCompressionASTCHDRFeaturesEXT const & textureCompressionASTCHDRFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceTextureCompressionASTCHDRFeaturesEXT>();
|
|
|
|
std::cout << "\tTextureCompressionASTCHHRFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\ttextureCompressionASTC_HDR : " << !!textureCompressionASTCHDRFeatures.textureCompressionASTC_HDR << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_timeline_semaphore" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR const & timelineSemaphoreFeatures = features2.get<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tTimelineSemaphoreFeatures:\n";
|
|
|
|
std::cout << "\t\ttimelineSemaphore :" << !!timelineSemaphoreFeatures.timelineSemaphore << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_transform_feedback" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceTransformFeedbackFeaturesEXT const & transformFeedbackFeatures = features2.get<vk::PhysicalDeviceTransformFeedbackFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tTransformFeedbackFeatures:\n";
|
|
|
|
std::cout << "\t\tgeometryStreams : " << !!transformFeedbackFeatures.geometryStreams << "\n";
|
|
|
|
std::cout << "\t\ttransformFeedback : " << !!transformFeedbackFeatures.transformFeedback << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_uniform_buffer_standard_layout" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceUniformBufferStandardLayoutFeaturesKHR const & uniformBufferStandardLayoutFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceUniformBufferStandardLayoutFeaturesKHR>();
|
|
|
|
std::cout << "\tUniformBufferStandardLayoutFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tuniformBufferStandardLayout : " << !!uniformBufferStandardLayoutFeatures.uniformBufferStandardLayout << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_variable_pointers" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceVariablePointersFeatures const & variablePointersFeatures = features2.get<vk::PhysicalDeviceVariablePointersFeatures>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tVariablePointersFeatures:\n";
|
|
|
|
std::cout << "\t\tvariablePointers : " << !!variablePointersFeatures.variablePointers << "\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tvariablePointersStorageBuffer : " << !!variablePointersFeatures.variablePointersStorageBuffer << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_vertex_attribute_divisor" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceVertexAttributeDivisorFeaturesEXT const & vertexAttributeDivisorFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceVertexAttributeDivisorFeaturesEXT>();
|
|
|
|
std::cout << "\tVertexAttributeDivisorFeature:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tvertexAttributeInstanceRateDivisor : " << !!vertexAttributeDivisorFeatures.vertexAttributeInstanceRateDivisor << "\n";
|
|
|
|
std::cout << "\t\tvertexAttributeInstanceRateZeroDivisor : " << !!vertexAttributeDivisorFeatures.vertexAttributeInstanceRateZeroDivisor << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_vulkan_memory_model" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceVulkanMemoryModelFeaturesKHR const & vulkanMemoryModelFeatures = features2.get<vk::PhysicalDeviceVulkanMemoryModelFeaturesKHR>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tVulkanMemoryModelFeatures:\n";
|
2022-02-28 09:11:04 +00:00
|
|
|
std::cout << "\t\tvulkanMemoryModel : " << !!vulkanMemoryModelFeatures.vulkanMemoryModel << "\n";
|
|
|
|
std::cout << "\t\tvulkanMemoryModelAvailabilityVisibilityChains : " << !!vulkanMemoryModelFeatures.vulkanMemoryModelAvailabilityVisibilityChains
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tvulkanMemoryModelDeviceScope : " << !!vulkanMemoryModelFeatures.vulkanMemoryModelDeviceScope << "\n";
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_sampler_ycbcr_conversion" ) )
|
|
|
|
{
|
2022-02-28 09:11:04 +00:00
|
|
|
vk::PhysicalDeviceYcbcrImageArraysFeaturesEXT const & ycbcrImageArraysFeatures = features2.get<vk::PhysicalDeviceYcbcrImageArraysFeaturesEXT>();
|
2021-02-17 09:49:59 +00:00
|
|
|
std::cout << "\tYcbcrImageArraysFeatures:\n";
|
|
|
|
std::cout << "\t\tycbcrImageArrays : " << !!ycbcrImageArraysFeatures.ycbcrImageArrays << "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* VULKAN_KEY_END */
|
|
|
|
}
|
|
|
|
catch ( vk::SystemError & err )
|
|
|
|
{
|
|
|
|
std::cout << "vk::SystemError: " << err.what() << std::endl;
|
|
|
|
exit( -1 );
|
|
|
|
}
|
|
|
|
catch ( std::exception & err )
|
|
|
|
{
|
|
|
|
std::cout << "std::exception: " << err.what() << std::endl;
|
|
|
|
exit( -1 );
|
|
|
|
}
|
|
|
|
catch ( ... )
|
|
|
|
{
|
|
|
|
std::cout << "unknown error\n";
|
|
|
|
exit( -1 );
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|