Search Results for

    Show / Hide Table of Contents

    Class WGPUHelpers

    Set of WebGPU helpers.

    Inheritance
    object
    WGPUHelpers
    Namespace: Evergine.WebGPU
    Assembly: Evergine.WebGPU.dll
    Syntax
    public static class WGPUHelpers

    Methods

    GetBinding(LayoutElementDescription)

    Get the binding shifting the slot to avoid overlap in SpirV-Shaders.

    Declaration
    public static uint GetBinding(LayoutElementDescription element)
    Parameters
    Type Name Description
    LayoutElementDescription element

    The layout element description.

    Returns
    Type Description
    uint

    The first slot available.

    GetString(char*)

    Get a string from a char* pointer.

    Declaration
    public static string GetString(char* stringStart)
    Parameters
    Type Name Description
    char* stringStart

    The char* pointer.

    Returns
    Type Description
    string

    The result as UTF8 string.

    IsStencilFormat(PixelFormat)

    Whether a format support stencil or not.

    Declaration
    public static bool IsStencilFormat(PixelFormat format)
    Parameters
    Type Name Description
    PixelFormat format

    The format to evaluate.

    Returns
    Type Description
    bool

    True if the format support stencil.

    ToPointer(string)

    Helper to convert a string to a char* pointer.

    Declaration
    public static char* ToPointer(this string text)
    Parameters
    Type Name Description
    string text

    The string.

    Returns
    Type Description
    char*

    The char* pointer in unmanaged memory.

    In this article
    Back to top
    Generated by DocFX