summaryrefslogtreecommitdiff
path: root/tools/gfx/metal/metal-framebuffer.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-06-06 18:08:38 +0200
committerGitHub <noreply@github.com>2024-06-06 09:08:38 -0700
commit8ea3854d94eb1ff213be716a38493d601784810b (patch)
tree071be96574be4afa54afe0a1fe0d66f10eb2cd80 /tools/gfx/metal/metal-framebuffer.cpp
parent40d48bf1742cf21cc1ad3dd00d11fb04f37e512f (diff)
work on gfx metal backend (#4287)
* implement sampler state * implement input layout * implement fence object * buffer implementation * texture implementation * cleanup * add adapter enumeration * supported formats and allocation info * work on device and implement readBufferResource * skeleton for transient resource heap * initial work on command queue / buffers / encoders * fix uploading initial buffer data * implement buffer resource view * string utility functions * wip query pool implementation * cleanup * swapchain * wip * remove plain buffer view * extend gfxGetDeviceTypeName with metal * basic support for resource binding with compute shaders * needed for metal bindings * replace assert(0) with SLANG_UNIMPLEMENTED_X
Diffstat (limited to 'tools/gfx/metal/metal-framebuffer.cpp')
-rw-r--r--tools/gfx/metal/metal-framebuffer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gfx/metal/metal-framebuffer.cpp b/tools/gfx/metal/metal-framebuffer.cpp
index c676f44eb..46e60b2eb 100644
--- a/tools/gfx/metal/metal-framebuffer.cpp
+++ b/tools/gfx/metal/metal-framebuffer.cpp
@@ -17,11 +17,11 @@ FramebufferLayoutImpl::~FramebufferLayoutImpl()
//m_renderPass->release();
}
-Result FramebufferLayoutImpl::init(DeviceImpl* renderer, const IFramebufferLayout::Desc& desc)
+Result FramebufferLayoutImpl::init(DeviceImpl* device, const IFramebufferLayout::Desc& desc)
{
// Metal doesn't have a notion of Framebuffers or FramebufferLayouts per se.
// We simply stash the desc and use it when creating the (convenience) Framebuffer
- m_renderer = renderer;
+ m_device = device;
m_desc = desc;
return SLANG_OK;
}
@@ -30,9 +30,9 @@ FramebufferImpl::~FramebufferImpl()
{
}
-Result FramebufferImpl::init(DeviceImpl* renderer, const IFramebuffer::Desc& desc)
+Result FramebufferImpl::init(DeviceImpl* device, const IFramebuffer::Desc& desc)
{
- m_renderer = renderer;
+ m_device = device;
m_layout = static_cast<FramebufferLayoutImpl*>(desc.layout);
m_width = m_height = 1;