Table of Contents

Struct ShaderAttachment

Namespace
Pie
Assembly
Pie.dll

Attach shader code at the given Stage to a new Shader.

public struct ShaderAttachment
Inherited Members

Constructors

ShaderAttachment(ShaderStage, byte[], string)

Create a new shader attachment.

public ShaderAttachment(ShaderStage stage, byte[] spirv, string entryPoint)

Parameters

stage ShaderStage

The stage of this shader attachment.

spirv byte[]

The Spir-V of this shader attachment.

entryPoint string

The entry point name for this attachment.

ShaderAttachment(ShaderStage, string, Language, string)

Create a new shader attachment.

public ShaderAttachment(ShaderStage stage, string source, Language language = Language.GLSL, string entryPoint = "main")

Parameters

stage ShaderStage

The stage of this shader attachment.

source string

The source code of this shader attachment.

language Language

The shading language to use.

entryPoint string

The entry point function name.

Fields

EntryPoint

The entry point name for this attachment.

public string EntryPoint

Field Value

string
Attach shader code at the given to a new .

Spirv

The source code of this shader attachment.

public byte[] Spirv

Field Value

byte[]
Attach shader code at the given to a new .

Stage

The stage of this shader attachment.

public ShaderStage Stage

Field Value

ShaderStage
Attach shader code at the given to a new .