VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
renderPassColorGrab.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2025-2026 Arnis Lektauers
3
//
4
// Created by Arnis Lektauers on 11.12.2025.
5
//
6
#pragma once
7
8
#include "
platform/graphics/renderPass.h
"
9
10
namespace
visutwin::canvas
11
{
15
class
RenderPassColorGrab
:
public
RenderPass
16
{
17
public
:
18
explicit
RenderPassColorGrab
(
const
std::shared_ptr<GraphicsDevice>&
device
)
19
:
RenderPass
(
device
) {}
20
21
std::shared_ptr<RenderTarget>
source
()
const
{
return
_source; }
22
23
void
setSource
(
const
std::shared_ptr<RenderTarget>&
source
) { _source =
source
; }
24
25
private
:
26
// The source render target to grab the color from
27
std::shared_ptr<RenderTarget> _source =
nullptr
;
28
};
29
}
visutwin::canvas::RenderPassColorGrab::RenderPassColorGrab
RenderPassColorGrab(const std::shared_ptr< GraphicsDevice > &device)
Definition
renderPassColorGrab.h:18
visutwin::canvas::RenderPassColorGrab::setSource
void setSource(const std::shared_ptr< RenderTarget > &source)
Definition
renderPassColorGrab.h:23
visutwin::canvas::RenderPassColorGrab::source
std::shared_ptr< RenderTarget > source() const
Definition
renderPassColorGrab.h:21
visutwin::canvas::RenderPass::device
std::shared_ptr< GraphicsDevice > device() const
Definition
renderPass.h:124
visutwin::canvas::RenderPass::RenderPass
RenderPass(const std::shared_ptr< GraphicsDevice > &device)
Definition
renderPass.h:66
visutwin::canvas
Definition
eventHandler.cpp:9
renderPass.h
scene
graphics
renderPassColorGrab.h
Generated by
1.16.1