class alloc_instruction
Declaration
class alloc_instruction : public implement_acceptor { /* full declaration omitted */ };
Description
Allocates a contiguous range of memory, either for use as a backing allocation for a buffer or for other purposes i.e. staging for transfer operations.
Inherits from: implement_acceptor
Member Variables
- allocation_id m_aid
- size_t m_size
- size_t m_alignment
Member Function Overview
- alloc_instruction(instruction_id iid, int priority, allocation_id aid, size_t size, size_t alignment) → explicit
- get_alignment_bytes() const → size_t
- get_allocation_id() const → allocation_id
- get_size_bytes() const → size_t
Member Functions
¶explicit alloc_instruction(instruction_id iid,
int priority,
allocation_id aid,
size_t size,
size_t alignment)
explicit alloc_instruction(instruction_id iid,
int priority,
allocation_id aid,
size_t size,
size_t alignment)
Parameters
- instruction_id iid
- int priority
- allocation_id aid
- size_t size
- size_t alignment
¶size_t get_alignment_bytes() const
size_t get_alignment_bytes() const
¶allocation_id get_allocation_id() const
allocation_id get_allocation_id() const
¶size_t get_size_bytes() const
size_t get_size_bytes() const