core::gfx::commit_instruction struct

description of a memory commit instruction. Tries to offer some safer mechanisms.

constructors, destructors, conversion operators

commit_instruction<…>
automatically construct the information from the type information of the source.
public

variables

segment
target segment in the buffer
publicpublic
std::optional<memory::range_t>
sub_range
possible sub range within the segment.
publicpublic
std::uintptr_t
source
source to copy from
publicpublic
uint64_t
size
sizeof source
publicpublic

Function documentation

template<typename T>
core::gfx::commit_instruction::commit_instruction(T* source, memory::segment segment, std::optional<memory::range_t> sub_range = std::nullopt)

Brief

automatically construct the information from the type information of the source.

Details

Template parameters
T the type you wish to commit in this instruction.
Parameters
source in the source we will copy from.
segment in the memory::segment we will copy to.
sub_range in optional sub_range offset in the memory::segment, where a sub_range.begin() is equal to the head of the segment.