Luna::RHI::LoadOp

enum LoadOp : u8
{
    dont_care= 0
    load= 1
    clear= 2
}

The operation to perform when the attachment is loaded to GPU.

Options

  • dont_care

    The previous contents of the attachment does not need to be preserved. If this is specified, your application should not have any assumptions on the initial data of the attachment, and should overwrite the data in render pass.

  • load

    The previous contents of the attachment shall be preserved.

  • clear

    The contents within of the attachment will be cleared to a uniform value.