Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/backend/vulkan/Device.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | #if SDL_VERSION_ATLEAST(2, 0, 8) | ||||
else | else | ||||
{ | { | ||||
vulkanSupport = "cantload"; | vulkanSupport = "cantload"; | ||||
} | } | ||||
#endif | #endif | ||||
Script::SetProperty(rq, settings, "status", vulkanSupport); | Script::SetProperty(rq, settings, "status", vulkanSupport); | ||||
} | } | ||||
IFramebuffer* CDevice::GetCurrentBackbuffer() | |||||
{ | |||||
return nullptr; | |||||
} | |||||
std::unique_ptr<IDeviceCommandContext> CDevice::CreateCommandContext() | std::unique_ptr<IDeviceCommandContext> CDevice::CreateCommandContext() | ||||
{ | { | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
std::unique_ptr<ITexture> CDevice::CreateTexture( | std::unique_ptr<ITexture> CDevice::CreateTexture( | ||||
const char* name, const ITexture::Type type, const uint32_t usage, | const char* name, const ITexture::Type type, const uint32_t usage, | ||||
const Format format, const uint32_t width, const uint32_t height, | const Format format, const uint32_t width, const uint32_t height, | ||||
Show All 18 Lines | |||||
{ | { | ||||
return CreateTexture( | return CreateTexture( | ||||
name, ITexture::Type::TEXTURE_2D, usage, format, | name, ITexture::Type::TEXTURE_2D, usage, format, | ||||
width, height, defaultSamplerDesc, MIPLevelCount, sampleCount); | width, height, defaultSamplerDesc, MIPLevelCount, sampleCount); | ||||
} | } | ||||
std::unique_ptr<IFramebuffer> CDevice::CreateFramebuffer( | std::unique_ptr<IFramebuffer> CDevice::CreateFramebuffer( | ||||
const char* name, ITexture* colorAttachment, | const char* name, ITexture* colorAttachment, | ||||
ITexture* depthStencilAttachment) | const AttachmentLoadOp colorAttachmentLoadOp, | ||||
const AttachmentStoreOp colorAttachmentStoreOp, | |||||
const CColor& clearColor, ITexture* depthStencilAttachment, | |||||
const AttachmentLoadOp depthStencilAttachmentLoadOp, | |||||
const AttachmentStoreOp depthStencilAttachmentStoreOp) | |||||
{ | { | ||||
UNUSED2(name); | UNUSED2(name); | ||||
UNUSED2(colorAttachment); | UNUSED2(colorAttachment); | ||||
UNUSED2(depthStencilAttachment); | UNUSED2(colorAttachmentLoadOp); | ||||
return nullptr; | UNUSED2(colorAttachmentStoreOp); | ||||
} | |||||
std::unique_ptr<IFramebuffer> CDevice::CreateFramebuffer( | |||||
const char* name, ITexture* colorAttachment, | |||||
ITexture* depthStencilAttachment, const CColor& clearColor) | |||||
{ | |||||
UNUSED2(name); | |||||
UNUSED2(colorAttachment); | |||||
UNUSED2(depthStencilAttachment); | |||||
UNUSED2(clearColor); | UNUSED2(clearColor); | ||||
UNUSED2(depthStencilAttachment); | |||||
UNUSED2(depthStencilAttachmentLoadOp); | |||||
UNUSED2(depthStencilAttachmentStoreOp); | |||||
return nullptr; | return nullptr; | ||||
} | } | ||||
std::unique_ptr<IBuffer> CDevice::CreateBuffer( | std::unique_ptr<IBuffer> CDevice::CreateBuffer( | ||||
const char* name, const IBuffer::Type type, const uint32_t size, const bool dynamic) | const char* name, const IBuffer::Type type, const uint32_t size, const bool dynamic) | ||||
{ | { | ||||
UNUSED2(name); | UNUSED2(name); | ||||
UNUSED2(type); | UNUSED2(type); | ||||
Show All 10 Lines | std::unique_ptr<IShaderProgram> CDevice::CreateShaderProgram( | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
bool CDevice::AcquireNextBackbuffer() | bool CDevice::AcquireNextBackbuffer() | ||||
{ | { | ||||
return false; | return false; | ||||
} | } | ||||
IFramebuffer* CDevice::GetCurrentBackbuffer( | |||||
const AttachmentLoadOp colorAttachmentLoadOp, | |||||
const AttachmentStoreOp colorAttachmentStoreOp, | |||||
const AttachmentLoadOp depthStencilAttachmentLoadOp, | |||||
const AttachmentStoreOp depthStencilAttachmentStoreOp) | |||||
{ | |||||
return nullptr; | |||||
} | |||||
void CDevice::Present() | void CDevice::Present() | ||||
{ | { | ||||
} | } | ||||
bool CDevice::IsTextureFormatSupported(const Format format) const | bool CDevice::IsTextureFormatSupported(const Format format) const | ||||
{ | { | ||||
UNUSED2(format); | UNUSED2(format); | ||||
return false; | return false; | ||||
Show All 18 Lines |
Wildfire Games · Phabricator