CreateContext
Description
Creates a context.
Explicitly creates a context in the current process or thread. The context is used by a user to manage the tiling memory.
Definition
1 | Status CreateContext(Context **context, const std::function<void*(size_t)>& alloc, const std::function<void(void*)>& dealloc); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
context |
Input |
Passed context. |
alloc |
Input |
Passed tiling memory allocation method. |
dealloc |
Input |
Passed tiling memory release method. |
Returns
Type |
Input/Output |
Description |
|---|---|---|
Status |
Output |
Status value. If the setting is successful, NO_ERROR is returned. In the case of a failure, see ErrorType. |
Parent topic: atb/context.h