8#include "Metal/Metal.hpp"
71 const std::vector<std::shared_ptr<ColorAttachment>>&
colorAttachments()
const {
return _colorAttachments; }
72 const std::shared_ptr<DepthAttachment>&
depthAttachment()
const {
return _depthAttachment; }
79 std::vector<std::shared_ptr<ColorAttachment>> _colorAttachments;
80 std::shared_ptr<DepthAttachment> _depthAttachment;
ColorAttachment()=default
~ColorAttachment()=default
MTL::Texture * multisampledBuffer
MTL::PixelFormat pixelFormat
MTL::PixelFormat pixelFormat
MTL::Texture * depthTexture
bool depthTextureInternal
MTL::Texture * multisampledDepthBuffer
~DepthAttachment()=default
DepthAttachment(MTL::PixelFormat format, bool hasStencil)
void destroy(MetalGraphicsDevice *device)
virtual void destroyFrameBuffers()=0
RenderTarget(const RenderTargetOptions &options={})
virtual void createFrameBuffers()=0