Search Results for

    Show / Hide Table of Contents

    Class DX12ResourceFactory

    The DirectX version of the resource factory.

    Inheritance
    object
    ResourceFactory
    DX12ResourceFactory
    Inherited Members
    ResourceFactory.CreateCommandQueue(CommandQueueType)
    ResourceFactory.CreateGraphicsPipeline(ref GraphicsPipelineDescription)
    ResourceFactory.CreateComputePipeline(ref ComputePipelineDescription)
    ResourceFactory.CreateRaytracingPipeline(ref RaytracingPipelineDescription)
    ResourceFactory.CreateTexture(ref TextureDescription, string)
    ResourceFactory.GetTextureFromNativePointer(nint, ref TextureDescription)
    ResourceFactory.CreateTexture(DataBox[], ref TextureDescription, string)
    ResourceFactory.CreateTexture(DataBox[], ref TextureDescription, ref SamplerStateDescription, string)
    ResourceFactory.CreateBuffer(ref BufferDescription, string)
    ResourceFactory.CreateBuffer<T>(T[], ref BufferDescription, string)
    ResourceFactory.CreateBuffer<T>(ref T, ref BufferDescription, string)
    ResourceFactory.CreateBuffer(nint, ref BufferDescription, string)
    ResourceFactory.CreateShader(ref ShaderDescription)
    ResourceFactory.CreateSamplerState(ref SamplerStateDescription)
    ResourceFactory.CreateFrameBuffer(uint, uint, PixelFormat, PixelFormat, string)
    ResourceFactory.CreateFrameBuffer(FrameBufferAttachment?, FrameBufferAttachment[], bool)
    ResourceFactory.CreateResourceLayout(ref ResourceLayoutDescription)
    ResourceFactory.CreateResourceSet(ref ResourceSetDescription)
    Namespace: Evergine.DirectX12
    Assembly: Evergine.DirectX12.dll
    Syntax
    public class DX12ResourceFactory : ResourceFactory

    Constructors

    DX12ResourceFactory(DX12GraphicsContext)

    Initializes a new instance of the DX12ResourceFactory class.

    Declaration
    public DX12ResourceFactory(DX12GraphicsContext graphicsContext)
    Parameters
    Type Name Description
    DX12GraphicsContext graphicsContext

    DirectX graphics context.

    Properties

    GraphicsContext

    Gets the generic graphics context.

    Declaration
    protected override GraphicsContext GraphicsContext { get; }
    Property Value
    Type Description
    GraphicsContext
    Overrides
    ResourceFactory.GraphicsContext

    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.

    BufferDescription description

    The description of the index buffer.

    Returns
    Type Description
    Buffer

    The new buffer.

    Overrides
    ResourceFactory.CreateBufferInternal(nint, ref BufferDescription)

    CreateCommandQueueInternal(CommandQueueType)

    Creates a CommandQueue instance.

    Declaration
    protected override CommandQueue CreateCommandQueueInternal(CommandQueueType queueType)
    Parameters
    Type Name Description
    CommandQueueType queueType

    The command queue type, CommandQueueType.

    Returns
    Type Description
    CommandQueue

    The new command queue.

    Overrides
    ResourceFactory.CreateCommandQueueInternal(CommandQueueType)

    CreateComputePipelineInternal(ref ComputePipelineDescription)

    Creates a ComputePipelineState instance.

    Declaration
    protected override ComputePipelineState CreateComputePipelineInternal(ref ComputePipelineDescription description)
    Parameters
    Type Name Description
    ComputePipelineDescription description

    The compute pipeline state description.

    Returns
    Type Description
    ComputePipelineState

    The new pipeline state.

    Overrides
    ResourceFactory.CreateComputePipelineInternal(ref ComputePipelineDescription)

    CreateFrameBufferInternal(FrameBufferAttachment?, FrameBufferAttachment[], bool)

    Creates 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 the DepthStencil flag.

    FrameBufferAttachment[] colorTargets

    The array of color FrameBufferAttachment, all of which must have been created with the RenderTarget flags.

    bool disposeAttachments

    When this framebuffer is disposed, disposes the attachment textures too.

    Returns
    Type Description
    FrameBuffer

    The new framebuffer.

    Overrides
    ResourceFactory.CreateFrameBufferInternal(FrameBufferAttachment?, FrameBufferAttachment[], bool)

    CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription)

    Creates a GraphicsPipelineState instance.

    Declaration
    protected override GraphicsPipelineState CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription description)
    Parameters
    Type Name Description
    GraphicsPipelineDescription description

    The graphics pipeline state description.

    Returns
    Type Description
    GraphicsPipelineState

    The new pipeline state.

    Overrides
    ResourceFactory.CreateGraphicsPipelineInternal(ref GraphicsPipelineDescription)

    CreateQueryHeap(ref QueryHeapDescription)

    Creates 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
    ResourceFactory.CreateQueryHeap(ref QueryHeapDescription)

    CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription)

    Creates a RaytracingPipelineState instance.

    Declaration
    protected override RaytracingPipelineState CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription description)
    Parameters
    Type Name Description
    RaytracingPipelineDescription description

    The raytracing pipeline state description.

    Returns
    Type Description
    RaytracingPipelineState

    The new pipeline state.

    Overrides
    ResourceFactory.CreateRaytracingPipelineInternal(ref RaytracingPipelineDescription)

    CreateResourceLayoutInternal(ref ResourceLayoutDescription)

    Creates a new ResourceLayout.

    Declaration
    protected override ResourceLayout CreateResourceLayoutInternal(ref ResourceLayoutDescription description)
    Parameters
    Type Name Description
    ResourceLayoutDescription description

    The description of all elements in this new ResourceLayout.

    Returns
    Type Description
    ResourceLayout

    A new ResourceLayout object.

    Overrides
    ResourceFactory.CreateResourceLayoutInternal(ref ResourceLayoutDescription)

    CreateResourceSetInternal(ref ResourceSetDescription)

    Creates a new ResourceSet.

    Declaration
    protected override ResourceSet CreateResourceSetInternal(ref ResourceSetDescription description)
    Parameters
    Type Name Description
    ResourceSetDescription description

    The description for all elements in this new ResourceSet.

    Returns
    Type Description
    ResourceSet

    A new ResourceSet object.

    Overrides
    ResourceFactory.CreateResourceSetInternal(ref ResourceSetDescription)

    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 sampler state.

    Overrides
    ResourceFactory.CreateSamplerStateInternal(ref SamplerStateDescription)

    CreateShaderInternal(ref ShaderDescription)

    Creates 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
    ResourceFactory.CreateShaderInternal(ref ShaderDescription)

    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 of the SamplerStateDescription struct.

    Returns
    Type Description
    Texture

    The new texture.

    Overrides
    ResourceFactory.CreateTextureInternal(DataBox[], ref TextureDescription, ref SamplerStateDescription)

    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.

    TextureDescription textureDescription

    The description of the already created texture.

    Returns
    Type Description
    Texture

    The texture instance.

    Overrides
    ResourceFactory.GetTextureFromNativePointerInternal(nint, ref TextureDescription)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX