summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-01-30 04:00:21 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-01-30 04:26:56 +0000
commitb484ebd657d17ae0a87d14df82419be6771f5069 (patch)
tree908dfc3469c94a6ac7e3aa4fa8d5844d0252cc2a /Graphics/GraphicsEngine
parentReworked resource validation when binding resources (diff)
downloadDiligentCore-b484ebd657d17ae0a87d14df82419be6771f5069.tar.gz
DiligentCore-b484ebd657d17ae0a87d14df82419be6771f5069.zip
Graphics accessories: added GetPipelineResourceFlagsString function
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h28
-rw-r--r--Graphics/GraphicsEngine/interface/PipelineResourceSignature.h4
2 files changed, 17 insertions, 15 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index 9234252c..2bc7cab1 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -70,22 +70,22 @@ DILIGENT_TYPED_ENUM(VALUE_TYPE, Uint8)
/// - TextureDesc to describe bind flags for a texture
DILIGENT_TYPED_ENUM(BIND_FLAGS, Uint32)
{
- BIND_NONE = 0x0L, ///< Undefined binding
- BIND_VERTEX_BUFFER = 0x1L, ///< A buffer can be bound as a vertex buffer
- BIND_INDEX_BUFFER = 0x2L, ///< A buffer can be bound as an index buffer
- BIND_UNIFORM_BUFFER = 0x4L, ///< A buffer can be bound as a uniform buffer
+ BIND_NONE = 0x0, ///< Undefined binding
+ BIND_VERTEX_BUFFER = 0x1, ///< A buffer can be bound as a vertex buffer
+ BIND_INDEX_BUFFER = 0x2, ///< A buffer can be bound as an index buffer
+ BIND_UNIFORM_BUFFER = 0x4, ///< A buffer can be bound as a uniform buffer
/// \warning This flag may not be combined with any other bind flag
- BIND_SHADER_RESOURCE = 0x8L, ///< A buffer or a texture can be bound as a shader resource
+ BIND_SHADER_RESOURCE = 0x8, ///< A buffer or a texture can be bound as a shader resource
/// \warning This flag cannot be used with MAP_WRITE_NO_OVERWRITE flag
- BIND_STREAM_OUTPUT = 0x10L, ///< A buffer can be bound as a target for stream output stage
- BIND_RENDER_TARGET = 0x20L, ///< A texture can be bound as a render target
- BIND_DEPTH_STENCIL = 0x40L, ///< A texture can be bound as a depth-stencil target
- BIND_UNORDERED_ACCESS = 0x80L, ///< A buffer or a texture can be bound as an unordered access view
- BIND_INDIRECT_DRAW_ARGS = 0x100L, ///< A buffer can be bound as the source buffer for indirect draw commands
- BIND_INPUT_ATTACHMENT = 0x200L, ///< A texture can be used as render pass input attachment
- BIND_RAY_TRACING = 0x400L, ///< A buffer can be used as a scratch buffer or as the source of primitive data
- /// for acceleration structure building
- BIND_FLAGS_LAST = 0x400L
+ BIND_STREAM_OUTPUT = 0x10, ///< A buffer can be bound as a target for stream output stage
+ BIND_RENDER_TARGET = 0x20, ///< A texture can be bound as a render target
+ BIND_DEPTH_STENCIL = 0x40, ///< A texture can be bound as a depth-stencil target
+ BIND_UNORDERED_ACCESS = 0x80, ///< A buffer or a texture can be bound as an unordered access view
+ BIND_INDIRECT_DRAW_ARGS = 0x100, ///< A buffer can be bound as the source buffer for indirect draw commands
+ BIND_INPUT_ATTACHMENT = 0x200, ///< A texture can be used as render pass input attachment
+ BIND_RAY_TRACING = 0x400, ///< A buffer can be used as a scratch buffer or as the source of primitive data
+ /// for acceleration structure building
+ BIND_FLAGS_LAST = 0x400
};
DEFINE_FLAG_ENUM_OPERATORS(BIND_FLAGS)
diff --git a/Graphics/GraphicsEngine/interface/PipelineResourceSignature.h b/Graphics/GraphicsEngine/interface/PipelineResourceSignature.h
index eb2c9470..3b6e66c9 100644
--- a/Graphics/GraphicsEngine/interface/PipelineResourceSignature.h
+++ b/Graphics/GraphicsEngine/interface/PipelineResourceSignature.h
@@ -106,7 +106,9 @@ DILIGENT_TYPED_ENUM(PIPELINE_RESOURCE_FLAGS, Uint8)
/// as opposed to structured buffers. If an application will be using
/// formatted buffers with buffer UAVs and SRVs, it must specify the
/// PIPELINE_RESOURCE_FLAG_FORMATTED_BUFFER flag.
- PIPELINE_RESOURCE_FLAG_FORMATTED_BUFFER = 0x04
+ PIPELINE_RESOURCE_FLAG_FORMATTED_BUFFER = 0x04,
+
+ PIPELINE_RESOURCE_FLAG_LAST = PIPELINE_RESOURCE_FLAG_FORMATTED_BUFFER
};
DEFINE_FLAG_ENUM_OPERATORS(PIPELINE_RESOURCE_FLAGS);