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
9
10namespace visutwin::canvas
11{
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}
RenderPassColorGrab(const std::shared_ptr< GraphicsDevice > &device)
void setSource(const std::shared_ptr< RenderTarget > &source)
std::shared_ptr< RenderTarget > source() const
std::shared_ptr< GraphicsDevice > device() const
Definition renderPass.h:124
RenderPass(const std::shared_ptr< GraphicsDevice > &device)
Definition renderPass.h:66