Search Results for

    Show / Hide Table of Contents

    Class DX12ExtensionsMethods

    Extensions methods used to convert valuesfrom Evergineto DirectX.

    Inheritance
    object
    DX12ExtensionsMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.DirectX12
    Assembly: Evergine.DirectX12.dll
    Syntax
    public static class DX12ExtensionsMethods

    Methods

    FromDirectX(Format)

    Convert to Evergine PixelFormat to DirectX Pixel Format.

    Declaration
    public static PixelFormat FromDirectX(this Format pixelFormat)
    Parameters
    Type Name Description
    Format pixelFormat

    DirectX pixel format.

    Returns
    Type Description
    PixelFormat

    Evergine pixel format.

    FromDirectX(SampleDescription)

    To convert from DirectX SampleDescription to TextureSampleCount.

    Declaration
    public static TextureSampleCount FromDirectX(this SampleDescription sampleDescription)
    Parameters
    Type Name Description
    SampleDescription sampleDescription

    The SampleDescription to convert.

    Returns
    Type Description
    TextureSampleCount

    The TextureSampleCount value.

    FromDirectX(ResourceFlags)

    To convert from DirectX BindFlags to TextureFlags.

    Declaration
    public static TextureFlags FromDirectX(this ResourceFlags flags)
    Parameters
    Type Name Description
    ResourceFlags flags

    the bindflags value to convert.

    Returns
    Type Description
    TextureFlags

    the ResourceUsage value.

    ToDepthStencilFormat(PixelFormat)

    Convert to DirectX Depth stencil format.

    Declaration
    public static Format ToDepthStencilFormat(this PixelFormat pixelFormat)
    Parameters
    Type Name Description
    PixelFormat pixelFormat

    The pixel format.

    Returns
    Type Description
    Format

    DirectX pixel format for depth stencil.

    ToDirectX(CommandQueueType)

    Convert to DirectX CommandListType from CommandQueueType.

    Declaration
    public static CommandListType ToDirectX(this CommandQueueType queueType)
    Parameters
    Type Name Description
    CommandQueueType queueType

    The commandQueueType to convert.

    Returns
    Type Description
    CommandListType

    The DirectX commandListType.

    ToDirectX(ComparisonFunction)

    Converts to DirectX compareFunction.

    Declaration
    public static ComparisonFunction ToDirectX(this ComparisonFunction function)
    Parameters
    Type Name Description
    ComparisonFunction function

    The value to convert.

    Returns
    Type Description
    ComparisonFunction

    The native value.

    ToDirectX(ElementFormat)

    To convert from VertexElementFormat to DXGI format.

    Declaration
    public static Format ToDirectX(this ElementFormat format)
    Parameters
    Type Name Description
    ElementFormat format

    The format to convert.

    Returns
    Type Description
    Format

    The result DXGI format.

    ToDirectX(GraphicsProfile)

    To convert from graphicsProfile to directX graphics profile.

    Declaration
    public static DxcShaderModel ToDirectX(this GraphicsProfile profile)
    Parameters
    Type Name Description
    GraphicsProfile profile

    The profile to convert.

    Returns
    Type Description
    DxcShaderModel

    The profile.

    ToDirectX(IndexFormat)

    To convert from indexformat to DXGI format.

    Declaration
    public static Format ToDirectX(this IndexFormat format)
    Parameters
    Type Name Description
    IndexFormat format

    The indexformat to convert.

    Returns
    Type Description
    Format

    The result DXGI format.

    ToDirectX(PixelFormat)

    Convert to DirectX Pixel Format.

    Declaration
    public static Format ToDirectX(this PixelFormat pixelFormat)
    Parameters
    Type Name Description
    PixelFormat pixelFormat

    pixelFormat.

    Returns
    Type Description
    Format

    DirectX pixel format.

    ToDirectX(HitGroupType)

    Convert to DirectX HitGroupType.

    Declaration
    public static HitGroupType ToDirectX(this HitGroupDescription.HitGroupType hitGroupType)
    Parameters
    Type Name Description
    HitGroupDescription.HitGroupType hitGroupType

    HitGroup type.

    Returns
    Type Description
    HitGroupType

    DirectX HitGroupType.

    ToDirectX(ResourceType)

    Convert to DirectX DescriptorRangeType.

    Declaration
    public static DescriptorRangeType ToDirectX(this ResourceType resourceType)
    Parameters
    Type Name Description
    ResourceType resourceType

    The resource type.

    Returns
    Type Description
    DescriptorRangeType

    DirectX DescriptorRangeType.

    ToDirectX(SamplerBorderColor)

    Converts to native sampler bordercolor.

    Declaration
    public static Color4 ToDirectX(this SamplerBorderColor borderColor)
    Parameters
    Type Name Description
    SamplerBorderColor borderColor

    The value to convert.

    Returns
    Type Description
    Color4

    The native rawColor4.

    ToDirectX(TextureAddressMode)

    Converts to DirectX sampler address mode.

    Declaration
    public static TextureAddressMode ToDirectX(this TextureAddressMode addressMode)
    Parameters
    Type Name Description
    TextureAddressMode addressMode

    The address mode to convert.

    Returns
    Type Description
    TextureAddressMode

    The native addressMode.

    ToDirectX(TextureFilter, bool)

    Converts to native Texturefilter.

    Declaration
    public static Filter ToDirectX(this TextureFilter filter, bool isComparison)
    Parameters
    Type Name Description
    TextureFilter filter

    The value to convert.

    bool isComparison

    If comparison function is active.

    Returns
    Type Description
    Filter

    The native value.

    ToDirectX(TextureFlags)

    To convert from TextureFlags to DirectX BindFlags.

    Declaration
    public static ResourceFlags ToDirectX(this TextureFlags flags)
    Parameters
    Type Name Description
    TextureFlags flags

    the textureflags value to convert.

    Returns
    Type Description
    ResourceFlags

    the ResourceUsage value.

    ToDirectX(TextureSampleCount)

    To convert from TextureSampleCount to DirectX SampleDescription.

    Declaration
    public static SampleDescription ToDirectX(this TextureSampleCount sampleCount)
    Parameters
    Type Name Description
    TextureSampleCount sampleCount

    The TextureSampleCount to convert.

    Returns
    Type Description
    SampleDescription

    The SampleDescription value.

    ToDirectX(VertexStepFunction)

    Converts to DirectX InputClassification enum.

    Declaration
    public static InputClassification ToDirectX(this VertexStepFunction stepFunction)
    Parameters
    Type Name Description
    VertexStepFunction stepFunction

    The value to convert.

    Returns
    Type Description
    InputClassification

    The native value.

    ToDirectXStage(ShaderStages)

    To convert from ShaderStage to DirectX stage.

    Declaration
    public static DxcShaderStage ToDirectXStage(this ShaderStages stage)
    Parameters
    Type Name Description
    ShaderStages stage

    The shaderstage to convert.

    Returns
    Type Description
    DxcShaderStage

    The result string.

    ToDirectXString(ShaderStages)

    To convert from ShaderStage to DirectX string.

    Declaration
    public static string ToDirectXString(this ShaderStages stage)
    Parameters
    Type Name Description
    ShaderStages stage

    The shaderstage to convert.

    Returns
    Type Description
    string

    The result string.

    ToHLSLSemantic(ElementSemanticType)

    To convert from VertexSemanticType to HLSL semantic string.

    Declaration
    public static string ToHLSLSemantic(this ElementSemanticType semantic)
    Parameters
    Type Name Description
    ElementSemanticType semantic

    The semantic to convert.

    Returns
    Type Description
    string

    The semantic string.

    In This Article
    Back to top
    Generated by DocFX