Add GetNativePtr to GPUAdapter

This commit is contained in:
Wojciech Figat
2022-12-14 16:16:25 +01:00
parent 713aa3e0f9
commit 79f4dfcaab
4 changed files with 17 additions and 5 deletions

View File

@@ -38,12 +38,14 @@ public:
{
return Index != INVALID_INDEX && MaxFeatureLevel != static_cast<D3D_FEATURE_LEVEL>(0);
}
void* GetNativePtr() const override
{
return (void*)(intptr)Index;
}
uint32 GetVendorId() const override
{
return (uint32)Description.VendorId;
}
String GetDescription() const override
{
return Description.Description;