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
stageShaderStageThe stage of this shader attachment.
spirvbyte[]The Spir-V of this shader attachment.
entryPointstringThe 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
stageShaderStageThe stage of this shader attachment.
sourcestringThe source code of this shader attachment.
languageLanguageThe shading language to use.
entryPointstringThe 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 .