da_bgfx_make_ref

Make reference to data to pass to bgfx. Unlike bgfx::alloc, this call doesn't allocate memory for data. It just copies the _data pointer. You can pass ReleaseFn function pointer to release this memory after it's consumed, otherwise you must make sure _data is available for at least 2 bgfx::frame calls. ReleaseFn function must be able to be called from any thread. Attention: Data passed must be available for at least 2 bgfx::frame calls.

version(!BindBgfx_Static)
extern (C) @nogc nothrow __gshared
alias da_bgfx_make_ref = const(bgfx_memory_t)* function
(
const(void)* _data
,
uint _size
)

Meta