![]() |
Plasma Engine
2.0
|
Thread-safe context for initializing resources. Records a command buffer that transitions all newly created resources into their initial state. More...
#include <InitContext.h>
Public Member Functions | |
plInitContextVulkan (plGALDeviceVulkan *pDevice) | |
vk::CommandBuffer | GetFinishedCommandBuffer () |
Returns a finished command buffer of all background loading up to this point. The command buffer is already ended and marked to be reclaimed so the only thing done on it should be to submit it. | |
void | InitTexture (const plGALTextureVulkan *pTexture, vk::ImageCreateInfo &createInfo, plArrayPtr< plGALSystemMemoryDescription > pInitialData) |
Initializes a texture and moves it into its default state. | |
void | TextureDestroyed (const plGALTextureVulkan *pTexture) |
Needs to be called by the plGALDeviceVulkan just before a texture is destroyed to clean up stale barriers. | |
Thread-safe context for initializing resources. Records a command buffer that transitions all newly created resources into their initial state.
void plInitContextVulkan::InitTexture | ( | const plGALTextureVulkan * | pTexture, |
vk::ImageCreateInfo & | createInfo, | ||
plArrayPtr< plGALSystemMemoryDescription > | pInitialData ) |
Initializes a texture and moves it into its default state.
pTexture | The texture to initialize. |
createInfo | The image creation info for the texture. Needed for initial state information. |
pInitialData | The initial data of the texture. If not set, the initial content will be undefined. |