Class GPUUploadTextureMipTask
GPU texture mip upload task.
Assembly: FlaxEngine.dll
File: Engine/Graphics/Async/Tasks/GPUUploadTextureMipTask.h
Syntax
public class GPUUploadTextureMipTask : public GPUTask
Constructors
GPUUploadTextureMipTask(GPUTexture* texture, int32 mipIndex, Span<byte> data, int32 rowPitch, int32 slicePitch, bool copyData)
Initializes a new instance of the GPUUploadTextureMipTask class.
Declaration
public GPUUploadTextureMipTask(GPUTexture* texture, int32 mipIndex, Span<byte> data, int32 rowPitch, int32 slicePitch, bool copyData)
Parameters
GPUTexture
texture
The target texture. |
int32
mipIndex
The target texture mip data. |
Span<byte>
data
The data to upload. |
int32
rowPitch
The data row pitch. |
int32
slicePitch
The data slice pitch. |
bool
copyData
True if copy data to the temporary buffer, otherwise the input data will be used directly. Then ensure it is valid during the copy operation period (for the next few frames). |
Fields
_data
Declaration
protected BytesContainer _data
Field Value
BytesContainer
|
_mipIndex
Declaration
protected int32 _mipIndex
Field Value
int32
|
_rowPitch
Declaration
protected int32 _rowPitch
Field Value
int32
|
_slicePitch
Declaration
protected int32 _slicePitch
Field Value
int32
|
_texture
Declaration
protected GPUTextureReference _texture
Field Value
GPUTextureReference
|
Methods
HasReference(Object* resource)
Determines whether the specified object has reference to the given object.
Declaration
public virtual bool HasReference(Object* resource) const override
Parameters
Object
obj
The object. |
Returns
bool
True if the specified object has reference to the given object, otherwise false. |
Overrides
OnEnd()
OnSync()
run(GPUTasksContext* context)
Declaration
protected virtual Result run(GPUTasksContext* context) override
Parameters
GPUTasksContext
context
|
Returns
Result
|