28 #ifndef BERSERK_RHIDEFS_HPP
29 #define BERSERK_RHIDEFS_HPP
401 return fBase * 2 * 2;
403 return fBase * 3 * 3;
405 return fBase * 4 * 4;
461 return "sampler2DArray";
465 return "samplerCube";
619 static String g_GLSL410GL(
"GLSL410GL");
620 static String g_GLSL450GL(
"GLSL450GL");
621 static String g_GLSL450VK(
"GLSL450VK");
623 if (g_GLSL410GL == language)
625 else if (g_GLSL450GL == language)
627 else if (g_GLSL450VK == language)
#define BRK_NS_END
Definition: Config.hpp:48
std::uint8_t uint8
Definition: Typedefs.hpp:38
std::uint32_t uint32
Definition: Typedefs.hpp:44
std::uint16_t uint16
Definition: Typedefs.hpp:41
Utf-8 encoded std based default string class.
bool RHIIsVectorType(RHIShaderDataType type)
Definition: RHIDefs.hpp:518
RHITextureCubemapFace
Definition: RHIDefs.hpp:177
RHIShaderParamType
Definition: RHIDefs.hpp:106
RHIShaderDataType
Definition: RHIDefs.hpp:83
RHITextureFormat
Definition: RHIDefs.hpp:135
uint32 GetRHIShaderDataTypeSize(RHIShaderDataType type)
Definition: RHIDefs.hpp:361
RHIVertexFrequency
Definition: RHIDefs.hpp:64
RHIShaderLanguage RHIParseShaderLanguage(const char *language)
Definition: RHIDefs.hpp:618
RHIIndexType
Definition: RHIDefs.hpp:57
RHIBufferUsage
Definition: RHIDefs.hpp:50
RHIPolygonFrontFace
Definition: RHIDefs.hpp:241
bool RHIIsIntegralBaseSignedType(RHIShaderDataType type)
Definition: RHIDefs.hpp:506
RHIBlendOperation
Definition: RHIDefs.hpp:289
RHIRenderTargetOption
Definition: RHIDefs.hpp:302
const char * RHIGetShaderParamIdGLSL(RHIShaderParamType type)
Definition: RHIDefs.hpp:456
bool RHIIsFloatBaseType(RHIShaderDataType type)
Definition: RHIDefs.hpp:491
RHIType
Definition: RHIDefs.hpp:43
RHIShaderType
Definition: RHIDefs.hpp:122
RHITextureType
Definition: RHIDefs.hpp:114
RHIOperation
Definition: RHIDefs.hpp:257
RHIPolygonMode
Definition: RHIDefs.hpp:227
RHISamplerBorderColor
Definition: RHIDefs.hpp:214
RHICompareFunction
Definition: RHIDefs.hpp:246
RHIVertexElementType
Definition: RHIDefs.hpp:71
uint32 RHIGetBaseElementsCount(RHIShaderDataType type)
Definition: RHIDefs.hpp:569
uint32 RHIGetIndexSize(RHIIndexType type)
Definition: RHIDefs.hpp:633
RHIPolygonCullMode
Definition: RHIDefs.hpp:233
RHISamplerMagFilter
Definition: RHIDefs.hpp:186
void RHIGetMatrixSize(RHIShaderDataType type, uint32 &rows, uint32 &cols)
Definition: RHIDefs.hpp:602
RHITextureUsage
Definition: RHIDefs.hpp:166
RHISamplerMinFilter
Definition: RHIDefs.hpp:191
RHISamplerRepeatMode
Definition: RHIDefs.hpp:206
RHIBlendFactor
Definition: RHIDefs.hpp:266
uint32 RHIGetVectorComponentsCount(RHIShaderDataType type)
Definition: RHIDefs.hpp:542
bool RHIIsIntegralBaseType(RHIShaderDataType type)
Definition: RHIDefs.hpp:471
RHIPrimitivesType
Definition: RHIDefs.hpp:220
const char * RHIGetShaderDataIdGLSL(RHIShaderDataType type)
Definition: RHIDefs.hpp:411
RHIShaderLanguage
Definition: RHIDefs.hpp:127
Definition: GLDevice.cpp:46
RHI device capabilities.
Definition: RHIDefs.hpp:345
float maxAnisotropy
Definition: RHIDefs.hpp:356
uint32 maxTextureArrayLayers
Definition: RHIDefs.hpp:348
uint32 maxTextureUnits
Definition: RHIDefs.hpp:351
uint32 maxColorAttachments
Definition: RHIDefs.hpp:352
uint32 maxVertexAttributes
Definition: RHIDefs.hpp:346
uint32 uniformBlockOffsetAlignment
Definition: RHIDefs.hpp:355
bool supportAnisotropy
Definition: RHIDefs.hpp:357
uint32 maxFramebufferHeight
Definition: RHIDefs.hpp:354
uint32 maxTexture3dSize
Definition: RHIDefs.hpp:349
uint32 maxFramebufferWidth
Definition: RHIDefs.hpp:353
uint32 maxCombinedUniformBlocks
Definition: RHIDefs.hpp:347
uint32 maxTextureSize
Definition: RHIDefs.hpp:350
RHI common device limits.
Definition: RHIDefs.hpp:312
static const uint32 MAX_TEXTURE_MIPMAPS
Definition: RHIDefs.hpp:329
static const uint32 MAX_VERTEX_ATTRIBUTES
Definition: RHIDefs.hpp:314
static const uint32 MAX_FRAMES_IN_FLIGHT
Definition: RHIDefs.hpp:338
static const uint32 MAX_SHADER_PARAM_NAME
Definition: RHIDefs.hpp:323
static const uint32 MAX_VERTEX_BUFFERS
Definition: RHIDefs.hpp:317
static const uint32 MAX_TEXTURE_CUBE_FACES
Definition: RHIDefs.hpp:335
static const uint32 MAX_RESOURCE_SETS
Definition: RHIDefs.hpp:341
static const uint32 MAX_SHADER_STAGES
Definition: RHIDefs.hpp:332
static const uint32 MAX_SHADER_PARAMS_COUNT
Definition: RHIDefs.hpp:326
static const uint32 MAX_COLOR_ATTACHMENTS
Definition: RHIDefs.hpp:320