• Runs a validation test to check that evaluation of builtin either evaluates with or without error at shader creation time or pipeline creation time.

    Parameters

    • t: ShaderValidationTest

      the ShaderValidationTest

    • builtin: string

      the name of the builtin

    • expectedResult: boolean

      false if an error is expected, true if no error is expected

    • args: Value[]

      the arguments to pass to the builtin

    • stage: ConstantOrOverrideStage

      the evaluation stage

    • Optional returnType: Type

      the explicit return type of the result variable, if provided (implicit otherwise)

    Returns void

Generated using TypeDoc