added GPUPhysicalDevice::CheckExtensionSupport function.
This commit is contained in:
parent
bde0c77911
commit
a6c409c139
@ -36,6 +36,7 @@ public:
|
|||||||
|
|
||||||
const bool GetLayerVersion(const AnsiString &,uint32_t &spec,uint32_t &impl)const;
|
const bool GetLayerVersion(const AnsiString &,uint32_t &spec,uint32_t &impl)const;
|
||||||
const uint32_t GetExtensionVersion(const AnsiString &name)const;
|
const uint32_t GetExtensionVersion(const AnsiString &name)const;
|
||||||
|
const bool CheckExtensionSupport(const AnsiString &name)const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -61,6 +61,17 @@ const uint32_t GPUPhysicalDevice::GetExtensionVersion(const AnsiString &name)con
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bool GPUPhysicalDevice::CheckExtensionSupport(const AnsiString &name)const
|
||||||
|
{
|
||||||
|
for(const VkExtensionProperties &ep:extension_properties)
|
||||||
|
{
|
||||||
|
if(name.Comp(ep.extensionName)==0)
|
||||||
|
return(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
return(false);
|
||||||
|
}
|
||||||
|
|
||||||
const bool GPUPhysicalDevice::CheckMemoryType(uint32_t typeBits,VkMemoryPropertyFlags properties,uint32_t *typeIndex)const
|
const bool GPUPhysicalDevice::CheckMemoryType(uint32_t typeBits,VkMemoryPropertyFlags properties,uint32_t *typeIndex)const
|
||||||
{
|
{
|
||||||
// Search memtypes to find first index with those properties
|
// Search memtypes to find first index with those properties
|
||||||
|
Loading…
x
Reference in New Issue
Block a user