LLGL 0.05 Beta
Loading...
Searching...
No Matches
Constants.h File Reference
#include <cstdint>

Macros

#define LLGL_MAX_NUM_COLOR_ATTACHMENTS   ( 8u )
 Maximum number of color attachments allowed for render targets.
#define LLGL_MAX_NUM_ATTACHMENTS   ( LLGL_MAX_NUM_COLOR_ATTACHMENTS + 1u )
 Maximum number of attachments allowed for render targets (color attachments and depth-stencil attachment).
#define LLGL_MAX_NUM_VIEWPORTS_AND_SCISSORS   ( 16u )
 Maximum number of viewports and scissors.
#define LLGL_MAX_NUM_SAMPLES   ( 64u )
 Maximum number of samples for multi-sampled rendering.
#define LLGL_MAX_NUM_SO_BUFFERS   ( 4u )
 Maximum number of stream-output buffers.
#define LLGL_MAX_THREAD_COUNT   ( static_cast<unsigned>(-1) )
 Indicates to use the maximum number of threads the host system supports.
#define LLGL_INVALID_SLOT   ( static_cast<std::uint32_t>(-1) )
 Specifies an invalid binding slot for shader resources.
#define LLGL_WHOLE_SIZE   ( static_cast<std::uint64_t>(-1) )
 Specifies to use the whole size of a resource.
#define LLGL_CURRENT_SWAP_INDEX   ( static_cast<std::uint32_t>(-1) )
 Specifies to use the current swap-index when beginning a render pass for a swap-chain.

Macro Definition Documentation

◆ LLGL_CURRENT_SWAP_INDEX

#define LLGL_CURRENT_SWAP_INDEX   ( static_cast<std::uint32_t>(-1) )

Specifies to use the current swap-index when beginning a render pass for a swap-chain.

See also
CommandBuffer::BeginRenderPass
SwapChain::GetCurrentSwapIndex

◆ LLGL_INVALID_SLOT

#define LLGL_INVALID_SLOT   ( static_cast<std::uint32_t>(-1) )

Specifies an invalid binding slot for shader resources.

See also
ShaderResourceReflection::slot

◆ LLGL_MAX_NUM_ATTACHMENTS

#define LLGL_MAX_NUM_ATTACHMENTS   ( LLGL_MAX_NUM_COLOR_ATTACHMENTS + 1u )

Maximum number of attachments allowed for render targets (color attachments and depth-stencil attachment).

◆ LLGL_MAX_NUM_COLOR_ATTACHMENTS

#define LLGL_MAX_NUM_COLOR_ATTACHMENTS   ( 8u )

Maximum number of color attachments allowed for render targets.

◆ LLGL_MAX_NUM_SAMPLES

#define LLGL_MAX_NUM_SAMPLES   ( 64u )

Maximum number of samples for multi-sampled rendering.

◆ LLGL_MAX_NUM_SO_BUFFERS

#define LLGL_MAX_NUM_SO_BUFFERS   ( 4u )

Maximum number of stream-output buffers.

◆ LLGL_MAX_NUM_VIEWPORTS_AND_SCISSORS

#define LLGL_MAX_NUM_VIEWPORTS_AND_SCISSORS   ( 16u )

Maximum number of viewports and scissors.

◆ LLGL_MAX_THREAD_COUNT

#define LLGL_MAX_THREAD_COUNT   ( static_cast<unsigned>(-1) )

Indicates to use the maximum number of threads the host system supports.

Remarks
This value does not itself specify the maximum number, but tells the associated functions to use the maximum number.
See also
ConvertImageBuffer
RenderSystem::CreateTexture
RenderSystem::WriteTexture
RenderSystem::ReadTexture

◆ LLGL_WHOLE_SIZE

#define LLGL_WHOLE_SIZE   ( static_cast<std::uint64_t>(-1) )

Specifies to use the whole size of a resource.

See also
CommandBuffer::FillBuffer