Skip to main content

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

Member Functions

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


allocation_id get_allocation_id() const


size_t get_size_bytes() const