SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
PushConstantsRange.h
1#pragma once
2
3#include "spark/render/Export.h"
4#include "spark/render/ShaderStages.h"
5
6namespace spark::render
7{
11 class SPARK_RENDER_EXPORT IPushConstantsRange
12 {
13 public:
14 virtual ~IPushConstantsRange() noexcept = default;
15
20 [[nodiscard]] virtual unsigned int space() const noexcept = 0;
21
26 [[nodiscard]] virtual unsigned int binding() const noexcept = 0;
27
32 [[nodiscard]] virtual unsigned int offset() const noexcept = 0;
33
38 [[nodiscard]] virtual unsigned int size() const noexcept = 0;
39
44 [[nodiscard]] virtual ShaderStage stage() const noexcept = 0;
45 };
46}
Interface for a push constants range in a push constants layout .
Definition PushConstantsRange.h:12
virtual unsigned int space() const noexcept=0
Gets the shader space the push constants can be accessed from.