mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-23 20:13:46 -04:00
Use minimal test for SDL_GPU on macOS (#552)
This commit is contained in:
parent
6aeeb520c4
commit
da2a06ed2b
@ -120,11 +120,19 @@ private:
|
|||||||
|
|
||||||
inline static void Direct3DRMSDL3GPU_EnumDevice(LPD3DENUMDEVICESCALLBACK cb, void* ctx)
|
inline static void Direct3DRMSDL3GPU_EnumDevice(LPD3DENUMDEVICESCALLBACK cb, void* ctx)
|
||||||
{
|
{
|
||||||
|
#ifdef __APPLE__
|
||||||
|
SDL_GPUDevice* device = SDL_CreateGPUDevice(SDL_GPU_SHADERFORMAT_MSL, false, nullptr);
|
||||||
|
if (!device) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SDL_DestroyGPUDevice(device);
|
||||||
|
#else
|
||||||
Direct3DRMRenderer* device = Direct3DRMSDL3GPURenderer::Create(640, 480);
|
Direct3DRMRenderer* device = Direct3DRMSDL3GPURenderer::Create(640, 480);
|
||||||
if (!device) {
|
if (!device) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
delete device;
|
delete device;
|
||||||
|
#endif
|
||||||
|
|
||||||
D3DDEVICEDESC halDesc = {};
|
D3DDEVICEDESC halDesc = {};
|
||||||
halDesc.dcmColorModel = D3DCOLOR_RGB;
|
halDesc.dcmColorModel = D3DCOLOR_RGB;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user