Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/backend/vulkan/Device.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | public: | ||||
const std::string& GetName() const override { return m_Name; } | const std::string& GetName() const override { return m_Name; } | ||||
const std::string& GetVersion() const override { return m_Version; } | const std::string& GetVersion() const override { return m_Version; } | ||||
const std::string& GetDriverInformation() const override { return m_DriverInformation; } | const std::string& GetDriverInformation() const override { return m_DriverInformation; } | ||||
const std::vector<std::string>& GetExtensions() const override { return m_Extensions; } | const std::vector<std::string>& GetExtensions() const override { return m_Extensions; } | ||||
void Report(const ScriptRequest& rq, JS::HandleValue settings) override; | void Report(const ScriptRequest& rq, JS::HandleValue settings) override; | ||||
IFramebuffer* GetCurrentBackbuffer() override; | |||||
std::unique_ptr<IDeviceCommandContext> CreateCommandContext() override; | std::unique_ptr<IDeviceCommandContext> CreateCommandContext() override; | ||||
std::unique_ptr<ITexture> CreateTexture( | std::unique_ptr<ITexture> 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, | ||||
const Sampler::Desc& defaultSamplerDesc, const uint32_t MIPLevelCount, const uint32_t sampleCount) override; | const Sampler::Desc& defaultSamplerDesc, const uint32_t MIPLevelCount, const uint32_t sampleCount) override; | ||||
std::unique_ptr<ITexture> CreateTexture2D( | std::unique_ptr<ITexture> CreateTexture2D( | ||||
const char* name, const uint32_t usage, | const char* name, 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, | ||||
const Sampler::Desc& defaultSamplerDesc, const uint32_t MIPLevelCount = 1, const uint32_t sampleCount = 1) override; | const Sampler::Desc& defaultSamplerDesc, const uint32_t MIPLevelCount = 1, const uint32_t sampleCount = 1) override; | ||||
std::unique_ptr<IFramebuffer> CreateFramebuffer( | std::unique_ptr<IFramebuffer> CreateFramebuffer( | ||||
const char* name, ITexture* colorAttachment, | const char* name, ITexture* colorAttachment, | ||||
ITexture* depthStencilAttachment) override; | const AttachmentLoadOp colorAttachmentLoadOp, | ||||
const AttachmentStoreOp colorAttachmentStoreOp, | |||||
std::unique_ptr<IFramebuffer> CreateFramebuffer( | const CColor& clearColor, ITexture* depthStencilAttachment, | ||||
const char* name, ITexture* colorAttachment, | const AttachmentLoadOp depthStencilAttachmentLoadOp, | ||||
ITexture* depthStencilAttachment, const CColor& clearColor) override; | const AttachmentStoreOp depthStencilAttachmentStoreOp) override; | ||||
std::unique_ptr<IBuffer> CreateBuffer( | std::unique_ptr<IBuffer> CreateBuffer( | ||||
const char* name, const IBuffer::Type type, const uint32_t size, const bool dynamic) override; | const char* name, const IBuffer::Type type, const uint32_t size, const bool dynamic) override; | ||||
std::unique_ptr<IShaderProgram> CreateShaderProgram( | std::unique_ptr<IShaderProgram> CreateShaderProgram( | ||||
const CStr& name, const CShaderDefines& defines) override; | const CStr& name, const CShaderDefines& defines) override; | ||||
bool AcquireNextBackbuffer() override; | bool AcquireNextBackbuffer() override; | ||||
IFramebuffer* GetCurrentBackbuffer( | |||||
const AttachmentLoadOp colorAttachmentLoadOp, | |||||
const AttachmentStoreOp colorAttachmentStoreOp, | |||||
const AttachmentLoadOp depthStencilAttachmentLoadOp, | |||||
const AttachmentStoreOp depthStencilAttachmentStoreOp) override; | |||||
void Present() override; | void Present() override; | ||||
bool IsTextureFormatSupported(const Format format) const override; | bool IsTextureFormatSupported(const Format format) const override; | ||||
bool IsFramebufferFormatSupported(const Format format) const override; | bool IsFramebufferFormatSupported(const Format format) const override; | ||||
const Capabilities& GetCapabilities() const override { return m_Capabilities; } | const Capabilities& GetCapabilities() const override { return m_Capabilities; } | ||||
Show All 18 Lines |
Wildfire Games · Phabricator