Struct ShaderAttachment
- Namespace
- Pie
- Assembly
- Pie.dll
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
ShaderStageThe stage of this shader attachment.
spirv
byte[]The Spir-V of this shader attachment.
entryPoint
stringThe 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
ShaderStageThe stage of this shader attachment.
source
stringThe source code of this shader attachment.
language
LanguageThe shading language to use.
entryPoint
stringThe 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 .