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 graphicsContext.
Declaration
protected override GraphicsContext GraphicsContext { get; }
Property Value
Type | Description |
---|---|
Graphics |
Overrides
Methods
CreateBufferInternal(IntPtr, ref BufferDescription)
Creates a Buffer instance.
Declaration
protected override Buffer CreateBufferInternal(IntPtr data, ref BufferDescription description)
Parameters
Type | Name | Description |
---|---|---|
Int |
data | Data pointer. |
Buffer |
description | The index buffer description. |
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 commandQueue type, Command |
Returns
Type | Description |
---|---|
Command |
The new commandQueue. |
Overrides
CreateComputePipelineInternal(ref ComputePipelineDescription)
Creates a Compute
Declaration
protected override ComputePipelineState CreateComputePipelineInternal(ref ComputePipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Compute |
description | The compute pipelinestate description. |
Returns
Type | Description |
---|---|
Compute |
The new pipelinestate. |
Overrides
CreateFrameBufferInternal(FrameBufferAttachment?, FrameBufferAttachment[], bool)
Create 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, dispose 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 pipelinestate description. |
Returns
Type | Description |
---|---|
Graphics |
The new pipelinestate. |
Overrides
CreateQueryHeap(ref QueryHeapDescription)
Create a Query
Declaration
public override QueryHeap CreateQueryHeap(ref QueryHeapDescription description)
Parameters
Type | Name | Description |
---|---|---|
Query |
description | The queryheap description. |
Returns
Type | Description |
---|---|
Query |
The new queryheap. |
Overrides
CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription)
Creates a Raytracing
Declaration
protected override RaytracingPipelineState CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Raytracing |
description | The raytracing pipelinestate description. |
Returns
Type | Description |
---|---|
Raytracing |
The new pipelinestate. |
Overrides
CreateResourceLayoutInternal(ref ResourceLayoutDescription)
Create a new Resource
Declaration
protected override ResourceLayout CreateResourceLayoutInternal(ref ResourceLayoutDescription description)
Parameters
Type | Name | Description |
---|---|---|
Resource |
description | The descriptions for all elements in this new resourceLayout. |
Returns
Type | Description |
---|---|
Resource |
A new resourceLayout object. |
Overrides
CreateResourceSetInternal(ref ResourceSetDescription)
Create a new Resource
Declaration
protected override ResourceSet CreateResourceSetInternal(ref ResourceSetDescription description)
Parameters
Type | Name | Description |
---|---|---|
Resource |
description | The descriptions for all elements in this new resourceSet. |
Returns
Type | Description |
---|---|
Resource |
A new resourceSet object. |
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 samplerstate. |
Overrides
CreateShaderInternal(ref ShaderDescription)
Create 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 Sampler |
Returns
Type | Description |
---|---|
Texture | The new texture. |
Overrides
GetTextureFromNativePointerInternal(IntPtr, ref TextureDescription)
Gets a Texture instance from an existing texture using the specified native pointer.
Declaration
protected override Texture GetTextureFromNativePointerInternal(IntPtr texturePointer, ref TextureDescription textureDescription)
Parameters
Type | Name | Description |
---|---|---|
Int |
texturePointer | The pointer of the texture. |
Texture |
textureDescription | The texture description of the already created texture. |
Returns
Type | Description |
---|---|
Texture | The texture instance. |