Diligent Engine  v.2.4.g
D3D11TypeConversions.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2019-2021 Diligent Graphics LLC
3  * Copyright 2015-2019 Egor Yusov
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * In no event and under no legal theory, whether in tort (including negligence),
18  * contract, or otherwise, unless required by applicable law (such as deliberate
19  * and grossly negligent acts) or agreed to in writing, shall any Contributor be
20  * liable for any damages, including any direct, indirect, special, incidental,
21  * or consequential damages of any character arising as a result of this License or
22  * out of the use or inability to use the software (including but not limited to damages
23  * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
24  * all other commercial damages or losses), even if such Contributor has been advised
25  * of the possibility of such damages.
26  */
27 
28 #pragma once
29 
32 
33 #include "GraphicsTypes.h"
34 #include "DXGITypeConversions.hpp"
35 
36 namespace Diligent
37 {
38 
39 inline UINT BindFlagsToD3D11BindFlags(Uint32 BindFlags)
40 {
41  // clang-format off
42  UINT D3D11BindFlags = 0;
43  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_VERTEX_BUFFER) ? D3D11_BIND_VERTEX_BUFFER : 0);
44  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_INDEX_BUFFER) ? D3D11_BIND_INDEX_BUFFER : 0);
45  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_UNIFORM_BUFFER) ? D3D11_BIND_CONSTANT_BUFFER : 0);
46  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_SHADER_RESOURCE) ? D3D11_BIND_SHADER_RESOURCE : 0);
47  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_STREAM_OUTPUT) ? D3D11_BIND_STREAM_OUTPUT : 0);
48  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_RENDER_TARGET) ? D3D11_BIND_RENDER_TARGET : 0);
49  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_DEPTH_STENCIL) ? D3D11_BIND_DEPTH_STENCIL : 0);
50  D3D11BindFlags = D3D11BindFlags | ((BindFlags & BIND_UNORDERED_ACCESS) ? D3D11_BIND_UNORDERED_ACCESS : 0);
51  // clang-format on
52  return D3D11BindFlags;
53 }
54 
55 inline BIND_FLAGS D3D11BindFlagsToBindFlags(UINT D3D11BindFlags)
56 {
57  BIND_FLAGS BindFlags = BIND_NONE;
58  // clang-format off
59  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_VERTEX_BUFFER) ? BIND_VERTEX_BUFFER : BIND_NONE);
60  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_INDEX_BUFFER) ? BIND_INDEX_BUFFER : BIND_NONE);
61  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_CONSTANT_BUFFER) ? BIND_UNIFORM_BUFFER : BIND_NONE);
62  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_SHADER_RESOURCE) ? BIND_SHADER_RESOURCE : BIND_NONE);
63  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_STREAM_OUTPUT) ? BIND_STREAM_OUTPUT : BIND_NONE);
64  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_RENDER_TARGET) ? BIND_RENDER_TARGET : BIND_NONE);
65  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_DEPTH_STENCIL) ? BIND_DEPTH_STENCIL : BIND_NONE);
66  BindFlags = BindFlags | ((D3D11BindFlags & D3D11_BIND_UNORDERED_ACCESS) ? BIND_UNORDERED_ACCESS : BIND_NONE);
67  VERIFY_EXPR( (D3D11BindFlags &
68  (D3D11_BIND_VERTEX_BUFFER|D3D11_BIND_INDEX_BUFFER|D3D11_BIND_CONSTANT_BUFFER|
69  D3D11_BIND_SHADER_RESOURCE|D3D11_BIND_STREAM_OUTPUT|D3D11_BIND_RENDER_TARGET|
70  D3D11_BIND_DEPTH_STENCIL|D3D11_BIND_UNORDERED_ACCESS)) == BindFlagsToD3D11BindFlags(BindFlags));
71  // clang-format on
72  return BindFlags;
73 }
74 
75 D3D11_PRIMITIVE_TOPOLOGY TopologyToD3D11Topology(PRIMITIVE_TOPOLOGY Topology);
76 
77 inline D3D11_USAGE UsageToD3D11Usage(USAGE Usage)
78 {
79  switch (Usage)
80  {
81  // clang-format off
82  case USAGE_IMMUTABLE: return D3D11_USAGE_IMMUTABLE;
83  case USAGE_DEFAULT: return D3D11_USAGE_DEFAULT;
84  case USAGE_DYNAMIC: return D3D11_USAGE_DYNAMIC;
85  case USAGE_STAGING: return D3D11_USAGE_STAGING;
86  // clang-format on
87  default: UNEXPECTED("Unknow usage"); return D3D11_USAGE_DEFAULT;
88  }
89 }
90 
91 inline USAGE D3D11UsageToUsage(D3D11_USAGE D3D11Usage)
92 {
93  switch (D3D11Usage)
94  {
95  // clang-format off
96  case D3D11_USAGE_IMMUTABLE: return USAGE_IMMUTABLE;
97  case D3D11_USAGE_DEFAULT: return USAGE_DEFAULT;
98  case D3D11_USAGE_DYNAMIC: return USAGE_DYNAMIC;
99  case D3D11_USAGE_STAGING: return USAGE_STAGING;
100  // clang-format on
101  default: UNEXPECTED("Unknow D3D11 usage"); return USAGE_DEFAULT;
102  }
103 }
104 
105 inline void MapParamsToD3D11MapParams(MAP_TYPE MapType, Uint32 MapFlags, D3D11_MAP& d3d11MapType, UINT& d3d11MapFlags)
106 {
107  d3d11MapType = static_cast<D3D11_MAP>(0);
108  switch (MapType)
109  {
110  case MAP_READ:
111  d3d11MapType = D3D11_MAP_READ;
112  break;
113 
114  case MAP_WRITE:
115  if (MapFlags & MAP_FLAG_DISCARD)
116  d3d11MapType = D3D11_MAP_WRITE_DISCARD;
117  else if (MapFlags & MAP_FLAG_NO_OVERWRITE)
118  d3d11MapType = D3D11_MAP_WRITE_NO_OVERWRITE;
119  else
120  d3d11MapType = D3D11_MAP_WRITE;
121  break;
122 
123  case MAP_READ_WRITE:
124  d3d11MapType = D3D11_MAP_READ_WRITE;
125  break;
126 
127  default:
128  UNEXPECTED("Unknown map type");
129  }
130 
131  d3d11MapFlags = 0;
132  d3d11MapFlags |= (MapFlags & MAP_FLAG_DO_NOT_WAIT) ? D3D11_MAP_FLAG_DO_NOT_WAIT : 0;
133 }
134 
136 {
137  UINT D3D11CPUAccessFlags = 0;
138  D3D11CPUAccessFlags |= (Flags & CPU_ACCESS_READ) ? D3D11_CPU_ACCESS_READ : 0;
139  D3D11CPUAccessFlags |= (Flags & CPU_ACCESS_WRITE) ? D3D11_CPU_ACCESS_WRITE : 0;
140  return D3D11CPUAccessFlags;
141 }
142 
144 {
145  CPU_ACCESS_FLAGS CPUAccessFlags = CPU_ACCESS_NONE;
146  CPUAccessFlags |= (D3D11CPUAccessFlags & D3D11_CPU_ACCESS_READ) ? CPU_ACCESS_READ : CPU_ACCESS_NONE;
147  CPUAccessFlags |= (D3D11CPUAccessFlags & D3D11_CPU_ACCESS_WRITE) ? CPU_ACCESS_WRITE : CPU_ACCESS_NONE;
148  VERIFY_EXPR(D3D11CPUAccessFlags == CPUAccessFlagsToD3D11CPUAccessFlags(CPUAccessFlags));
149  return CPUAccessFlags;
150 }
151 
153 {
154  UINT D3D11MiscFlags = 0;
155  D3D11MiscFlags |= (Flags & MISC_TEXTURE_FLAG_GENERATE_MIPS) ? D3D11_RESOURCE_MISC_GENERATE_MIPS : 0;
156  return D3D11MiscFlags;
157 }
158 
160 {
162  MiscFlags |= (D3D11MiscFlags & D3D11_RESOURCE_MISC_GENERATE_MIPS) ? MISC_TEXTURE_FLAG_GENERATE_MIPS : MISC_TEXTURE_FLAG_NONE;
163  return MiscFlags;
164 }
165 
166 D3D11_FILTER FilterTypeToD3D11Filter(FILTER_TYPE MinFilter, FILTER_TYPE MagFilter, FILTER_TYPE MipFilter);
167 
168 D3D11_TEXTURE_ADDRESS_MODE TexAddressModeToD3D11AddressMode(TEXTURE_ADDRESS_MODE Mode);
169 
170 D3D11_COMPARISON_FUNC ComparisonFuncToD3D11ComparisonFunc(COMPARISON_FUNCTION Func);
171 
173  D3D11_DEPTH_STENCIL_DESC& d3d11DSSDesc);
174 
176  D3D11_RASTERIZER_DESC& d3d11RSDesc);
177 
179  D3D11_BLEND_DESC& D3D11BSDesc);
180 
182  std::vector<D3D11_INPUT_ELEMENT_DESC, STDAllocatorRawMem<D3D11_INPUT_ELEMENT_DESC>>& D3D11InputElements);
183 
184 void TextureViewDesc_to_D3D11_SRV_DESC(const TextureViewDesc& TexViewDesc, D3D11_SHADER_RESOURCE_VIEW_DESC& D3D11SRVDesc, Uint32 SampleCount);
185 void TextureViewDesc_to_D3D11_RTV_DESC(const TextureViewDesc& TexViewDesc, D3D11_RENDER_TARGET_VIEW_DESC& D3D11RTVDesc, Uint32 SampleCount);
186 void TextureViewDesc_to_D3D11_DSV_DESC(const TextureViewDesc& TexViewDesc, D3D11_DEPTH_STENCIL_VIEW_DESC& D3D11DSVDesc, Uint32 SampleCount);
187 void TextureViewDesc_to_D3D11_UAV_DESC(const TextureViewDesc& TexViewDesc, D3D11_UNORDERED_ACCESS_VIEW_DESC& D3D11UAVDesc);
188 
189 void BufferViewDesc_to_D3D11_SRV_DESC(const BufferDesc& BuffDesc, const BufferViewDesc& SRVDesc, D3D11_SHADER_RESOURCE_VIEW_DESC& D3D11SRVDesc);
190 void BufferViewDesc_to_D3D11_UAV_DESC(const BufferDesc& BuffDesc, const BufferViewDesc& UAVDesc, D3D11_UNORDERED_ACCESS_VIEW_DESC& D3D11UAVDesc);
191 
192 } // namespace Diligent
Diligent::USAGE_STAGING
@ USAGE_STAGING
A resource that facilitates transferring data between GPU and CPU. D3D11 Counterpart: D3D11_USAGE_S...
Definition: GraphicsTypes.h:167
Diligent::TextureViewDesc_to_D3D11_UAV_DESC
void TextureViewDesc_to_D3D11_UAV_DESC(const TextureViewDesc &TexViewDesc, D3D11_UNORDERED_ACCESS_VIEW_DESC &D3D11UAVDesc)
Definition: D3D11TypeConversions.cpp:117
Diligent::BufferViewDesc_to_D3D11_SRV_DESC
void BufferViewDesc_to_D3D11_SRV_DESC(const BufferDesc &BuffDesc, const BufferViewDesc &SRVDesc, D3D11_SHADER_RESOURCE_VIEW_DESC &D3D11SRVDesc)
Definition: D3D11TypeConversions.cpp:125
Diligent::MISC_TEXTURE_FLAG_NONE
@ MISC_TEXTURE_FLAG_NONE
Definition: GraphicsTypes.h:977
Diligent::D3D11BindFlagsToBindFlags
BIND_FLAGS D3D11BindFlagsToBindFlags(UINT D3D11BindFlags)
Definition: D3D11TypeConversions.hpp:55
Diligent::CPU_ACCESS_FLAGS
CPU_ACCESS_FLAGS
Allowed CPU access mode flags when mapping a resource.
Definition: GraphicsTypes.h:191
Diligent::BindFlagsToD3D11BindFlags
UINT BindFlagsToD3D11BindFlags(Uint32 BindFlags)
Definition: D3D11TypeConversions.hpp:39
Diligent::BIND_UNORDERED_ACCESS
@ BIND_UNORDERED_ACCESS
A buffer or a texture can be bound as an unordered access view.
Definition: GraphicsTypes.h:127
Diligent::TextureViewDesc_to_D3D11_RTV_DESC
void TextureViewDesc_to_D3D11_RTV_DESC(const TextureViewDesc &TexViewDesc, D3D11_RENDER_TARGET_VIEW_DESC &D3D11RTVDesc, Uint32 SampleCount)
Definition: D3D11TypeConversions.cpp:103
Diligent::USAGE
USAGE
Resource usage.
Definition: GraphicsTypes.h:143
Diligent::TEXTURE_ADDRESS_MODE
TEXTURE_ADDRESS_MODE
Texture address mode.
Definition: GraphicsTypes.h:889
Flags
Uint32 Flags
Definition: DXBCUtils.cpp:71
Diligent::MAP_FLAG_DISCARD
@ MAP_FLAG_DISCARD
Previous contents of the resource will be undefined. This flag is only compatible with MAP_WRITE D3D...
Definition: GraphicsTypes.h:241
Diligent::FILTER_TYPE
FILTER_TYPE
Filter type.
Definition: GraphicsTypes.h:864
UNEXPECTED
#define UNEXPECTED(...)
Definition: DebugUtilities.hpp:77
Diligent::MAP_FLAG_NO_OVERWRITE
@ MAP_FLAG_NO_OVERWRITE
The system will not synchronize pending operations before mapping the buffer. It is responsibility of...
Definition: GraphicsTypes.h:247
Diligent::PRIMITIVE_TOPOLOGY
PRIMITIVE_TOPOLOGY
Input primitive topology.
Definition: GraphicsTypes.h:989
Diligent::TextureViewDesc_to_D3D11_DSV_DESC
void TextureViewDesc_to_D3D11_DSV_DESC(const TextureViewDesc &TexViewDesc, D3D11_DEPTH_STENCIL_VIEW_DESC &D3D11DSVDesc, Uint32 SampleCount)
Definition: D3D11TypeConversions.cpp:110
Diligent::USAGE_DYNAMIC
@ USAGE_DYNAMIC
A resource that can be read by the GPU and written at least once per frame by the CPU....
Definition: GraphicsTypes.h:161
Diligent::UsageToD3D11Usage
D3D11_USAGE UsageToD3D11Usage(USAGE Usage)
Definition: D3D11TypeConversions.hpp:77
Diligent::FilterTypeToD3D11Filter
D3D11_FILTER FilterTypeToD3D11Filter(FILTER_TYPE MinFilter, FILTER_TYPE MagFilter, FILTER_TYPE MipFilter)
Definition: D3D11TypeConversions.cpp:39
Diligent::BIND_FLAGS
BIND_FLAGS
Resource binding flags.
Definition: GraphicsTypes.h:115
Diligent::BIND_UNIFORM_BUFFER
@ BIND_UNIFORM_BUFFER
A buffer can be bound as a uniform buffer.
Definition: GraphicsTypes.h:120
Diligent::D3D11MiscFlagsToMiscTextureFlags
MISC_TEXTURE_FLAGS D3D11MiscFlagsToMiscTextureFlags(UINT D3D11MiscFlags)
Definition: D3D11TypeConversions.hpp:159
Diligent::MapParamsToD3D11MapParams
void MapParamsToD3D11MapParams(MAP_TYPE MapType, Uint32 MapFlags, D3D11_MAP &d3d11MapType, UINT &d3d11MapFlags)
Definition: D3D11TypeConversions.hpp:105
Diligent::InputLayoutDesc
struct InputLayoutDesc InputLayoutDesc
Definition: InputLayout.h:239
Diligent::MAP_READ_WRITE
@ MAP_READ_WRITE
The resource is mapped for reading and writing. D3D11 counterpart: D3D11_MAP_READ_WRITE....
Definition: GraphicsTypes.h:218
Diligent::BufferDesc
struct BufferDesc BufferDesc
Definition: Buffer.h:152
Diligent::MISC_TEXTURE_FLAG_GENERATE_MIPS
@ MISC_TEXTURE_FLAG_GENERATE_MIPS
Allow automatic mipmap generation with ITextureView::GenerateMips()
Definition: GraphicsTypes.h:982
Diligent::TextureViewDesc
struct TextureViewDesc TextureViewDesc
Definition: TextureView.h:183
Diligent::CPU_ACCESS_WRITE
@ CPU_ACCESS_WRITE
A resource can be mapped for writing.
Definition: GraphicsTypes.h:195
Diligent::BlendStateDesc
struct BlendStateDesc BlendStateDesc
Definition: BlendState.h:431
Diligent::Uint32
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:51
Diligent::MAP_WRITE
@ MAP_WRITE
The resource is mapped for writing. D3D11 counterpart: D3D11_MAP_WRITE. OpenGL counterpart: GL_MAP_...
Definition: GraphicsTypes.h:214
Diligent::MAP_READ
@ MAP_READ
The resource is mapped for reading. D3D11 counterpart: D3D11_MAP_READ. OpenGL counterpart: GL_MAP_R...
Definition: GraphicsTypes.h:210
Diligent::CPUAccessFlagsToD3D11CPUAccessFlags
UINT CPUAccessFlagsToD3D11CPUAccessFlags(Uint32 Flags)
Definition: D3D11TypeConversions.hpp:135
Diligent::COMPARISON_FUNCTION
COMPARISON_FUNCTION
Comparison function.
Definition: GraphicsTypes.h:931
Diligent::BlendStateDesc_To_D3D11_BLEND_DESC
void BlendStateDesc_To_D3D11_BLEND_DESC(const BlendStateDesc &BSDesc, D3D11_BLEND_DESC &D3D11BSDesc)
Definition: D3D11TypeConversions.cpp:68
Diligent::BIND_STREAM_OUTPUT
@ BIND_STREAM_OUTPUT
A buffer can be bound as a target for stream output stage.
Definition: GraphicsTypes.h:124
Diligent::MiscTextureFlagsToD3D11Flags
UINT MiscTextureFlagsToD3D11Flags(Uint32 Flags)
Definition: D3D11TypeConversions.hpp:152
Diligent::CPU_ACCESS_READ
@ CPU_ACCESS_READ
A resource can be mapped for reading.
Definition: GraphicsTypes.h:194
Diligent::DepthStencilStateDesc
struct DepthStencilStateDesc DepthStencilStateDesc
Definition: DepthStencilState.h:233
Diligent::BufferViewDesc_to_D3D11_UAV_DESC
void BufferViewDesc_to_D3D11_UAV_DESC(const BufferDesc &BuffDesc, const BufferViewDesc &UAVDesc, D3D11_UNORDERED_ACCESS_VIEW_DESC &D3D11UAVDesc)
Definition: D3D11TypeConversions.cpp:147
Diligent::BIND_DEPTH_STENCIL
@ BIND_DEPTH_STENCIL
A texture can be bound as a depth-stencil target.
Definition: GraphicsTypes.h:126
Diligent::MAP_FLAG_DO_NOT_WAIT
@ MAP_FLAG_DO_NOT_WAIT
Specifies that map operation should not wait until previous command that using the same resource comp...
Definition: GraphicsTypes.h:236
Diligent::ComparisonFuncToD3D11ComparisonFunc
D3D11_COMPARISON_FUNC ComparisonFuncToD3D11ComparisonFunc(COMPARISON_FUNCTION Func)
Definition: D3D11TypeConversions.cpp:49
Diligent::BIND_VERTEX_BUFFER
@ BIND_VERTEX_BUFFER
A buffer can be bound as a vertex buffer.
Definition: GraphicsTypes.h:118
Diligent::BufferViewDesc
struct BufferViewDesc BufferViewDesc
Definition: BufferView.h:140
Diligent::BIND_NONE
@ BIND_NONE
Undefined binding.
Definition: GraphicsTypes.h:117
VERIFY_EXPR
#define VERIFY_EXPR(...)
Definition: DebugUtilities.hpp:79
GraphicsTypes.h
Diligent::BIND_RENDER_TARGET
@ BIND_RENDER_TARGET
A texture can be bound as a render target.
Definition: GraphicsTypes.h:125
Diligent::TexAddressModeToD3D11AddressMode
D3D11_TEXTURE_ADDRESS_MODE TexAddressModeToD3D11AddressMode(TEXTURE_ADDRESS_MODE Mode)
Definition: D3D11TypeConversions.cpp:44
Diligent::DepthStencilStateDesc_To_D3D11_DEPTH_STENCIL_DESC
void DepthStencilStateDesc_To_D3D11_DEPTH_STENCIL_DESC(const DepthStencilStateDesc &DepthStencilDesc, D3D11_DEPTH_STENCIL_DESC &d3d11DSSDesc)
Definition: D3D11TypeConversions.cpp:54
Diligent::RasterizerStateDesc_To_D3D11_RASTERIZER_DESC
void RasterizerStateDesc_To_D3D11_RASTERIZER_DESC(const RasterizerStateDesc &RasterizerDesc, D3D11_RASTERIZER_DESC &d3d11RSDesc)
Definition: D3D11TypeConversions.cpp:60
Diligent::LayoutElements_To_D3D11_INPUT_ELEMENT_DESCs
void LayoutElements_To_D3D11_INPUT_ELEMENT_DESCs(const InputLayoutDesc &InputLayout, std::vector< D3D11_INPUT_ELEMENT_DESC, STDAllocatorRawMem< D3D11_INPUT_ELEMENT_DESC >> &D3D11InputElements)
Definition: D3D11TypeConversions.cpp:83
Diligent::BIND_INDEX_BUFFER
@ BIND_INDEX_BUFFER
A buffer can be bound as an index buffer.
Definition: GraphicsTypes.h:119
Diligent::MAP_TYPE
MAP_TYPE
Resource mapping type.
Definition: GraphicsTypes.h:206
Diligent::TextureViewDesc_to_D3D11_SRV_DESC
void TextureViewDesc_to_D3D11_SRV_DESC(const TextureViewDesc &TexViewDesc, D3D11_SHADER_RESOURCE_VIEW_DESC &D3D11SRVDesc, Uint32 SampleCount)
Definition: D3D11TypeConversions.cpp:96
Diligent::MISC_TEXTURE_FLAGS
MISC_TEXTURE_FLAGS
Miscellaneous texture flags.
Definition: GraphicsTypes.h:975
Diligent::CPU_ACCESS_NONE
@ CPU_ACCESS_NONE
No CPU access.
Definition: GraphicsTypes.h:193
Diligent::USAGE_IMMUTABLE
@ USAGE_IMMUTABLE
A resource that can only be read by the GPU. It cannot be written by the GPU, and cannot be accessed ...
Definition: GraphicsTypes.h:150
Diligent::RasterizerStateDesc
struct RasterizerStateDesc RasterizerStateDesc
Definition: RasterizerState.h:184
Diligent::D3D11UsageToUsage
USAGE D3D11UsageToUsage(D3D11_USAGE D3D11Usage)
Definition: D3D11TypeConversions.hpp:91
Diligent
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37
DXGITypeConversions.hpp
Diligent::BIND_SHADER_RESOURCE
@ BIND_SHADER_RESOURCE
A buffer or a texture can be bound as a shader resource.
Definition: GraphicsTypes.h:122
Diligent::USAGE_DEFAULT
@ USAGE_DEFAULT
A resource that requires read and write access by the GPU and can also be occasionally written by the...
Definition: GraphicsTypes.h:156
Diligent::TopologyToD3D11Topology
D3D11_PRIMITIVE_TOPOLOGY TopologyToD3D11Topology(PRIMITIVE_TOPOLOGY Topology)
Definition: D3D11TypeConversions.cpp:89
Diligent::D3D11CPUAccessFlagsToCPUAccessFlags
CPU_ACCESS_FLAGS D3D11CPUAccessFlagsToCPUAccessFlags(UINT D3D11CPUAccessFlags)
Definition: D3D11TypeConversions.hpp:143