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 DX11ResourceFactory class.
Declaration
public DX11ResourceFactory(DX11GraphicsContext graphicsContext)
Parameters
| Type | Name | Description |
|---|---|---|
| DX11GraphicsContext | graphicsContext | DirectX Graphics Context. |
Properties
GraphicsContext
Gets the generic graphicsContext.
Declaration
protected override GraphicsContext GraphicsContext { get; }
Property Value
| Type | Description |
|---|---|
| GraphicsContext |
Overrides
Methods
CreateBufferInternal(IntPtr, ref BufferDescription)
Creates a Buffer instance.
Declaration
protected override Buffer CreateBufferInternal(IntPtr data, ref BufferDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | data | Data pointer. |
| BufferDescription | description | The index buffer description. |
Returns
| Type | Description |
|---|---|
| Buffer | The new buffer. |
Overrides
CreateCommandQueueInternal(CommandQueueType)
Creates a CommandQueue instance.
Declaration
protected override CommandQueue CreateCommandQueueInternal(CommandQueueType queueType)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandQueueType | queueType | The commandQueue type, CommandQueueType. |
Returns
| Type | Description |
|---|---|
| CommandQueue | The new commandQueue. |
Overrides
CreateComputePipelineInternal(ref ComputePipelineDescription)
Creates a ComputePipelineState instance.
Declaration
protected override ComputePipelineState CreateComputePipelineInternal(ref ComputePipelineDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| ComputePipelineDescription | description | The compute pipelinestate description. |
Returns
| Type | Description |
|---|---|
| ComputePipelineState | The new pipelinestate. |
Overrides
CreateFrameBufferInternal(FrameBufferAttachment?, FrameBufferAttachment[], bool)
Create a FrameBuffer instance.
Declaration
protected override FrameBuffer CreateFrameBufferInternal(FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
Parameters
| Type | Name | Description |
|---|---|---|
| FrameBufferAttachment? | depthTarget | The depth FrameBufferAttachment which must have been created with DepthStencil flag. |
| FrameBufferAttachment[] | colorTargets | The array of color FrameBufferAttachment , all of which must have been created with RenderTarget flags. |
| bool | disposeAttachments | When this framebuffer is disposed, dispose the attachment textures too. |
Returns
| Type | Description |
|---|---|
| FrameBuffer | The new framebuffer. |
Overrides
CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription)
Creates a GraphicsPipelineState instance.
Declaration
protected override GraphicsPipelineState CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsPipelineDescription | description | The graphics pipelinestate description. |
Returns
| Type | Description |
|---|---|
| GraphicsPipelineState | The new pipelinestate. |
Overrides
CreateQueryHeap(ref QueryHeapDescription)
Create a QueryHeap instance.
Declaration
public override QueryHeap CreateQueryHeap(ref QueryHeapDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| QueryHeapDescription | description | The queryheap description. |
Returns
| Type | Description |
|---|---|
| QueryHeap | The new queryheap. |
Overrides
CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription)
Creates a RaytracingPipelineState instance.
Declaration
protected override RaytracingPipelineState CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| RaytracingPipelineDescription | description | The raytracing pipelinestate description. |
Returns
| Type | Description |
|---|---|
| RaytracingPipelineState | The new pipelinestate. |
Overrides
CreateResourceLayoutInternal(ref ResourceLayoutDescription)
Create a new ResourceLayout.
Declaration
protected override ResourceLayout CreateResourceLayoutInternal(ref ResourceLayoutDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| ResourceLayoutDescription | description | The descriptions for all elements in this new resourceLayout. |
Returns
| Type | Description |
|---|---|
| ResourceLayout | A new resourceLayout object. |
Overrides
CreateResourceSetInternal(ref ResourceSetDescription)
Create a new ResourceSet.
Declaration
protected override ResourceSet CreateResourceSetInternal(ref ResourceSetDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| ResourceSetDescription | description | The descriptions for all elements in this new resourceSet. |
Returns
| Type | Description |
|---|---|
| ResourceSet | A new resourceSet object. |
Overrides
CreateSamplerStateInternal(ref SamplerStateDescription)
Creates a SamplerState instance.
Declaration
protected override SamplerState CreateSamplerStateInternal(ref SamplerStateDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| SamplerStateDescription | description | The sampler state description. |
Returns
| Type | Description |
|---|---|
| SamplerState | The new samplerstate. |
Overrides
CreateShaderInternal(ref ShaderDescription)
Create a Shader instance.
Declaration
protected override Shader CreateShaderInternal(ref ShaderDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| ShaderDescription | 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 |
|---|---|---|
| DataBox[] | data | The texture data. |
| TextureDescription | description | The texture description. |
| SamplerStateDescription | samplerState | The sampler state description SamplerStateDescription struct. |
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 |
|---|---|---|
| IntPtr | texturePointer | The pointer of the texture. |
| TextureDescription | textureDescription | The texture description of the already created texture. |
Returns
| Type | Description |
|---|---|
| Texture | The texture instance. |