class Enlighten Dx9TextureUpdater

This is the documentation for Enlighten.

class Enlighten Dx9TextureUpdater

class Enlighten::Dx9TextureUpdater

    └>Enlighten::IGpuTextureUpdater
        └>Geo::IGeoReleasable

Implementation for managing solver output and Dx9 GPU textures.

Functions

Name

Description

Name

Description

Create(IDirect3DBaseTexture9 *)

Create an updater for a Dx9 2D texture for irradiance solver output.

Create3D(IDirect3DBaseTexture9 *)

Create an updater for a Dx9 volume texture for interpolated probe output.

CreateCubeMap(IDirect3DBaseTexture9 *)

Create an updater for a Dx9 cube map texture for cube map solver output.

GetCpuAccessiblePointer(Geo::s32)

Returns a CPU pointer to the memory used to update the GPU texture.

GetCpuAccessiblePointer(Geo::s32)

Returns a CPU pointer to the memory used to update the GPU texture.

GetNumMipLevels()

Returns the number of mip levels in the GPU texture - will only be bigger than 1 for cube maps.

GetNumMipLevels()

Returns the number of mip levels in the GPU texture - will only be bigger than 1 for cube maps.

GetRowPitch()

Returns the row pitch of the CPU memory associated with this GPU texture.

GetRowPitch()

Returns the row pitch of the CPU memory associated with this GPU texture.

GetSlicePitch()

Returns the slice pitch of the CPU memory associated with this GPU texture, for 3D textures.

GetSlicePitch()

Returns the slice pitch of the CPU memory associated with this GPU texture, for 3D textures.

IsFormat(TextureFormat)

Returns true if the format of the GPU texture matches the given Enlighten format.

IsFormat(TextureFormat)

Returns true if the format of the GPU texture matches the given Enlighten format.

Release()

Free this object that was created within the Enlighten libraries.

Release()

Free this object that was created within the Enlighten libraries.

Update()

Update the GPU copy of the texture on the render thread.

Update()

Update the GPU copy of the texture on the render thread.

Update(const TextureSubSection &)

Update the GPU copy of the specified sub-region on the render thread.

Update(const TextureSubSection &)

Update the GPU copy of the specified sub-region on the render thread.

UpdateOnWorkerThread()

Potentially update the GPU copy of the texture on the worker thread.

UpdateOnWorkerThread(const TextureSubSection &)

Equivalent to parameter-less overload, but only update a sub-region of the texture.



Dx9TextureUpdater * Enlighten::Dx9TextureUpdater::Create


public: Dx9TextureUpdater * Create
(
    IDirect3DBaseTexture9 * gpuTexture
)


Create an updater for a Dx9 2D texture for irradiance solver output.



Dx9TextureUpdater * Enlighten::Dx9TextureUpdater::Create3D


public: Dx9TextureUpdater * Create3D
(
    IDirect3DBaseTexture9 * gpuTexture
)


Create an updater for a Dx9 volume texture for interpolated probe output.