29 #include "GraphicsTypes.h" 33 #include "RenderDevice.h" 34 #include "DebugUtilities.h" 40 template<VALUE_TYPE ValType>
103 static const Uint32 ValueTypeToSizeMap[] =
120 VERIFY_EXPR(Val < _countof(ValueTypeToSizeMap));
121 return ValueTypeToSizeMap[Val];
230 template<
typename TObjectDescType>
240 String Str(
"Tex desc: " );
249 String Str(
"Buff desc: " );
TEXTURE_FORMAT
Texture formats.
Definition: GraphicsTypes.h:244
Unsigned 8-bit integer.
Definition: GraphicsTypes.h:45
Signed 8-bit integer.
Definition: GraphicsTypes.h:42
Texture description.
Definition: Texture.h:82
int8_t Int8
8-bit signed integer
Definition: BasicTypes.h:36
TEXTURE_VIEW_TYPE
Texture view type.
Definition: GraphicsTypes.h:190
const Char * GetUsageString(USAGE Usage)
Returns the string containing the usage.
Definition: GraphicsAccessories.cpp:506
SHADER_TYPE
Describes the shader type.
Definition: Shader.h:46
Unsigned 16-bit integer.
Definition: GraphicsTypes.h:46
Graphics engine namespace.
Definition: AdaptiveFixedBlockAllocator.h:30
VALUE_TYPE2CType<> template specialization for 8-bit integer value type.
Definition: GraphicsAccessories.h:49
const Char * GetShaderTypeLiteralName(SHADER_TYPE ShaderType)
Returns the literal name of a shader type. For instance, for a pixel shader, "SHADER_TYPE_PIXEL" will...
Definition: GraphicsAccessories.cpp:458
TEXTURE_FORMAT Format
Texture format, see Diligent::TEXTURE_FORMAT.
Definition: Texture.h:102
VALUE_TYPE2CType<> template specialization for 16-bit unsigned-integer value type.
Definition: GraphicsAccessories.h:77
const Char * GetViewTypeLiteralName(TEXTURE_VIEW_TYPE TexViewType)
Overloaded function that returns the literal name of a texture view type. see GetTexViewTypeLiteralNa...
Definition: GraphicsAccessories.h:198
VALUE_TYPE2CType<> template specialization for 32-bit integer value type.
Definition: GraphicsAccessories.h:63
String GetCPUAccessFlagsString(Uint32 CpuAccessFlags)
Returns the string containing the CPU access flags.
Definition: GraphicsAccessories.cpp:610
Signed 32-bit integer.
Definition: GraphicsTypes.h:44
const TextureFormatAttribs & GetTextureFormatAttribs(TEXTURE_FORMAT Format)
Returns invariant texture format attributes, see TextureFormatAttribs for details.
Definition: GraphicsAccessories.cpp:238
String GetBindFlagsString(Uint32 BindFlags)
Returns the string containing the bind flags.
Definition: GraphicsAccessories.cpp:577
uint8_t Uint8
8-bit unsigned integer
Definition: BasicTypes.h:41
const Char * GetResourceDimString(RESOURCE_DIMENSION TexType)
Returns the string containing the texture type.
Definition: GraphicsAccessories.cpp:529
const Char * GetValueTypeString(VALUE_TYPE Val)
Returns the string representing the specified value type.
Definition: GraphicsAccessories.cpp:31
SHADER_VARIABLE_TYPE
Describes shader variable type that is used by ShaderVariableDesc.
Definition: Shader.h:100
std::basic_string< Char > String
String variable.
Definition: BasicTypes.h:51
Signed 16-bit integer.
Definition: GraphicsTypes.h:43
Buffer description.
Definition: Buffer.h:57
float Float32
32-bit float
Definition: BasicTypes.h:31
VALUE_TYPE
Value type.
Definition: GraphicsTypes.h:39
int16_t Int16
16-bit signed integer
Definition: BasicTypes.h:35
Template structure to convert VALUE_TYPE enumeration into C-type.
Definition: GraphicsAccessories.h:41
Half-precision 16-bit floating point.
Definition: GraphicsTypes.h:48
USAGE
Resource usage.
Definition: GraphicsTypes.h:84
uint16_t Uint16
16-bit unsigned integer
Definition: BasicTypes.h:40
Helper value storing total number of types in the enumeration.
Definition: GraphicsTypes.h:50
String GetBufferDescString(const BufferDesc &Desc)
Returns the string containing the buffer description.
Definition: GraphicsAccessories.cpp:708
RESOURCE_DIMENSION
Describes resource dimension.
Definition: GraphicsTypes.h:172
Full-precision 32-bit floating point.
Definition: GraphicsTypes.h:49
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:39
Uint32 GetValueSize(VALUE_TYPE Val)
Returns the size of the specified value type.
Definition: GraphicsAccessories.h:118
Unsigned 32-bit integer.
Definition: GraphicsTypes.h:47
const Char * GetBufferViewTypeLiteralName(BUFFER_VIEW_TYPE ViewType)
Returns the literal name of a buffer view type. For instance, for an unordered access view...
Definition: GraphicsAccessories.cpp:427
const Char * GetShaderVariableTypeLiteralName(SHADER_VARIABLE_TYPE VarType, bool bGetFullName=false)
Returns the literal name of a shader variable type. For instance, for SHADER_VARIABLE_TYPE_STATIC, if bGetFullName == true, "SHADER_VARIABLE_TYPE_STATIC" will be returned; if bGetFullName == false, "static" will be returned.
Definition: GraphicsAccessories.cpp:478
int32_t Int32
32-bit signed integer
Definition: BasicTypes.h:34
const Char * GetTexViewTypeLiteralName(TEXTURE_VIEW_TYPE ViewType)
Returns the literal name of a texture view type. For instance, for a shader resource view...
Definition: GraphicsAccessories.cpp:394
VALUE_TYPE2CType<> template specialization for half-precision 16-bit floating-point value type...
Definition: GraphicsAccessories.h:93
Uint32 BindFlags
Bind flags, see Diligent::BIND_FLAGS for details. The following bind flags are allowed: Diligent::BI...
Definition: Texture.h:120
BUFFER_VIEW_TYPE
Buffer view type.
Definition: GraphicsTypes.h:219
String GetTextureDescString(const TextureDesc &Desc)
Returns the string containing the texture description.
Definition: GraphicsAccessories.cpp:639
TEXTURE_FORMAT GetDefaultTextureViewFormat(TEXTURE_FORMAT TextureFormat, TEXTURE_VIEW_TYPE ViewType, Uint32 BindFlags)
Returns the default format for a specified texture view type.
Definition: GraphicsAccessories.cpp:232
String GetObjectDescString(const TObjectDescType &)
Helper template function that converts object description into a string.
Definition: GraphicsAccessories.h:231