Plasma Engine  2.0
Loading...
Searching...
No Matches
plInitContextVulkan Class Reference

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.
 

Detailed Description

Thread-safe context for initializing resources. Records a command buffer that transitions all newly created resources into their initial state.

Member Function Documentation

◆ InitTexture()

void plInitContextVulkan::InitTexture ( const plGALTextureVulkan * pTexture,
vk::ImageCreateInfo & createInfo,
plArrayPtr< plGALSystemMemoryDescription > pInitialData )

Initializes a texture and moves it into its default state.

Parameters
pTextureThe texture to initialize.
createInfoThe image creation info for the texture. Needed for initial state information.
pInitialDataThe initial data of the texture. If not set, the initial content will be undefined.

The documentation for this class was generated from the following files: