Class DX11ResourceFactory
The DirectX version of the resource factory.
Inherited Members
Namespace: Evergine.DirectX11
Assembly: Evergine.DirectX11.dll
Syntax
public class DX11ResourceFactory : ResourceFactory
Constructors
DX11ResourceFactory(DX11GraphicsContext)
Initializes a new instance of the DX11Resource
Declaration
public DX11ResourceFactory(DX11GraphicsContext graphicsContext)
Parameters
Type | Name | Description |
---|---|---|
DX11Graphics |
graphicsContext | DirectX graphics context. |
Properties
GraphicsContext
Gets the generic graphics context.
Declaration
protected override GraphicsContext GraphicsContext { get; }
Property Value
Type | Description |
---|---|
Graphics |
Overrides
Methods
CreateBufferInternal(nint, ref BufferDescription)
Creates a Buffer instance.
Declaration
protected override Buffer CreateBufferInternal(nint data, ref BufferDescription description)
Parameters
Type | Name | Description |
---|---|---|
nint | data | Pointer to the data. |
Buffer |
description | The description of the index buffer. |
Returns
Type | Description |
---|---|
Buffer | The new buffer. |
Overrides
CreateCommandQueueInternal(CommandQueueType)
Creates a Command
Declaration
protected override CommandQueue CreateCommandQueueInternal(CommandQueueType queueType)
Parameters
Type | Name | Description |
---|---|---|
Command |
queueType | The command queue type, Command |
Returns
Type | Description |
---|---|
Command |
The new command queue. |
Overrides
CreateComputePipelineInternal(ref ComputePipelineDescription)
Creates a Compute
Declaration
protected override ComputePipelineState CreateComputePipelineInternal(ref ComputePipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Compute |
description | The compute pipeline state description. |
Returns
Type | Description |
---|---|
Compute |
The new pipeline state. |
Overrides
CreateFrameBufferInternal(FrameBufferAttachment?, FrameBufferAttachment[], bool)
Creates a Frame
Declaration
protected override FrameBuffer CreateFrameBufferInternal(FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
Parameters
Type | Name | Description |
---|---|---|
Frame |
depthTarget | The depth Frame |
Frame |
colorTargets | The array of color Frame |
bool | disposeAttachments | When this framebuffer is disposed, disposes the attachment textures too. |
Returns
Type | Description |
---|---|
Frame |
The new framebuffer. |
Overrides
CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription)
Creates a Graphics
Declaration
protected override GraphicsPipelineState CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
description | The graphics pipeline state description. |
Returns
Type | Description |
---|---|
Graphics |
The new pipeline state. |
Overrides
CreateQueryHeap(ref QueryHeapDescription)
Creates a Query
Declaration
public override QueryHeap CreateQueryHeap(ref QueryHeapDescription description)
Parameters
Type | Name | Description |
---|---|---|
Query |
description | The Query |
Returns
Overrides
CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription)
Creates a Raytracing
Declaration
protected override RaytracingPipelineState CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Raytracing |
description | The raytracing pipeline state description. |
Returns
Type | Description |
---|---|
Raytracing |
The new pipeline state. |
Overrides
CreateResourceLayoutInternal(ref ResourceLayoutDescription)
Creates a new Resource
Declaration
protected override ResourceLayout CreateResourceLayoutInternal(ref ResourceLayoutDescription description)
Parameters
Type | Name | Description |
---|---|---|
Resource |
description | The description of all elements in this new Resource |
Returns
Type | Description |
---|---|
Resource |
A new ResourceLayout object. |
Overrides
CreateResourceSetInternal(ref ResourceSetDescription)
Creates a new Resource
Declaration
protected override ResourceSet CreateResourceSetInternal(ref ResourceSetDescription description)
Parameters
Type | Name | Description |
---|---|---|
Resource |
description | The description for all elements in this new Resource |
Returns
Type | Description |
---|---|
Resource |
A new Resource |
Overrides
CreateSamplerStateInternal(ref SamplerStateDescription)
Creates a Sampler
Declaration
protected override SamplerState CreateSamplerStateInternal(ref SamplerStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Sampler |
description | The sampler state description. |
Returns
Type | Description |
---|---|
Sampler |
The new sampler state. |
Overrides
CreateShaderInternal(ref ShaderDescription)
Creates a Shader instance.
Declaration
protected override Shader CreateShaderInternal(ref ShaderDescription description)
Parameters
Type | Name | Description |
---|---|---|
Shader |
description | The shader description. |
Returns
Type | Description |
---|---|
Shader | The new shader. |
Overrides
CreateTextureInternal(DataBox[], ref TextureDescription, ref SamplerStateDescription)
Creates a Texture instance.
Declaration
protected override Texture CreateTextureInternal(DataBox[] data, ref TextureDescription description, ref SamplerStateDescription samplerState)
Parameters
Type | Name | Description |
---|---|---|
Data |
data | The texture data. |
Texture |
description | The texture description. |
Sampler |
samplerState | The sampler state description of the Sampler |
Returns
Type | Description |
---|---|
Texture | The new texture. |
Overrides
GetTextureFromNativePointerInternal(nint, ref TextureDescription)
Gets a Texture instance from an existing texture using the specified native pointer.
Declaration
protected override Texture GetTextureFromNativePointerInternal(nint texturePointer, ref TextureDescription textureDescription)
Parameters
Type | Name | Description |
---|---|---|
nint | texturePointer | The pointer to the texture. |
Texture |
textureDescription | The description of the already created texture. |
Returns
Type | Description |
---|---|
Texture | The texture instance. |