Class GPUSampler
GPU texture sampler object.
Inherited Members
GPUSampler
Assembly: FlaxEngine.dll
File: Engine/Graphics/Textures/GPUSampler.h
Syntax
public class GPUSampler : public GPUResource
Constructors
GPUSampler()
Declaration
protected GPUSampler()
Fields
_desc
Methods
GetDescription()
Gets sampler description structure.
Declaration
public GPUSamplerDescription GetDescription() const
Returns
GetResourceType()
Gets the GPU resource type.
Declaration
public virtual GPUResourceType GetResourceType() const final override
Returns
Overrides
Init(const GPUSamplerDescription& desc)
Creates new sampler.
Declaration
public bool Init(const GPUSamplerDescription& desc)
Parameters
GPUSampler The sampler description. |
Returns
bool
True if cannot create sampler, otherwise false. |
OnInit()
Declaration
protected virtual bool OnInit() = 0
Returns
bool
|
OnReleaseGPU()
Releases GPU resource data (implementation).
Declaration
protected virtual void OnReleaseGPU() override
Overrides
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override