CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
NLRenderPass.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "NLCommon.hpp"
11
13
14namespace CeresEngine {
15
16 class NLDevice;
17 class NLGraphicsPipeline;
18
20 class NLRenderPass final : public GPURenderPass, public NLDeviceObject<NLRenderPass, GPURenderPass> {
21 private:
24
25 public:
28
29 public:
31 void begin(GPUCommandBuffer& commandBuffer, GPURenderTarget& renderTarget, const Color& clearColor = Color(0.0, 0.0, 0.0, 0.0)) final;
32
35 };
36
37} // namespace CeresEngine
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition GPUCommandBuffer.hpp:77
GPUDevice & device
The owning device this object was created from.
Definition Common.hpp:55
Definition GPURenderPass.hpp:149
Definition GPURenderTarget.hpp:105
Definition NLCommon.hpp:117
Null RenderAPI render pass object.
Definition NLRenderPass.hpp:20
const GPURenderPassDescriptor mDescriptor
A structure that describes the render pass and it's properties.
Definition NLRenderPass.hpp:23
void begin(GPUCommandBuffer &commandBuffer, GPURenderTarget &renderTarget, const Color &clearColor=Color(0.0, 0.0, 0.0, 0.0)) final
void end(GPUCommandBuffer &commandBuffer, GPURenderTarget &renderTarget) final
NLRenderPass(NLDevicePtr device, const GPURenderPassDescriptor &descriptor)
const Descriptor & descriptor
A structure that describes the object and it's properties.
Definition Common.hpp:69
Definition Application.hpp:19
@ Color
Attachment is used for color output.
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Render pass descriptor structure.
Definition GPURenderPass.hpp:112