33#ifndef DVD_GENERIC_DRAW_COMMAND_H_
34#define DVD_GENERIC_DRAW_COMMAND_H_
59static_assert(
sizeof( IndirectIndexedDrawCommand ) == 20,
"Wrong indexed indirect command size!");
73static_assert(
sizeof( IndirectNonIndexedDrawCommand ) == 16,
"Wrong non-indexed indirect command size!");
94static_assert(
sizeof(GenericDrawCommand) == 32,
"Wrong command size! May cause performance issues. Disable assert to continue anyway.");
Handle console commands that start with a forward slash.
bool isEnabledOption(const GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void disableOptions(GenericDrawCommand &cmd, BaseType< CmdRenderOptions > optionsMask) noexcept
void disableOption(GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void toggleOption(GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void enableOption(GenericDrawCommand &cmd, CmdRenderOptions option) noexcept
void setOptions(GenericDrawCommand &cmd, BaseType< CmdRenderOptions > optionsMask, bool state) noexcept
void resetOptions(GenericDrawCommand &cmd) noexcept
std::underlying_type_t< Type > BaseType
eastl::fixed_vector< GenericDrawCommand, 1, true > GenericDrawCommandContainer
void enableOptions(GenericDrawCommand &cmd, BaseType< CmdRenderOptions > optionsMask) noexcept
bool Compatible(const GenericDrawCommand &lhs, const GenericDrawCommand &rhs) noexcept
void setOption(GenericDrawCommand &cmd, CmdRenderOptions option, bool state) noexcept
constexpr T toBit(const T X)
Converts an arbitrary positive integer value to a bitwise value used for masks.
constexpr auto to_base(const Type value) -> Type
IndirectIndexedDrawCommand _cmd