From 8ea3854d94eb1ff213be716a38493d601784810b Mon Sep 17 00:00:00 2001 From: skallweitNV <64953474+skallweitNV@users.noreply.github.com> Date: Thu, 6 Jun 2024 18:08:38 +0200 Subject: 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 --- tools/gfx/metal/metal-framebuffer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/gfx/metal/metal-framebuffer.cpp') 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(desc.layout); m_width = m_height = 1; -- cgit v1.2.3