Skip to content

Commit

Permalink
Added tessellation shader types
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Nov 27, 2023
1 parent d1c511d commit e056232
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lvk/LVK.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ enum Topology : uint8_t {
Topology_LineStrip,
Topology_Triangle,
Topology_TriangleStrip,
Topology_Patch,
};

enum ColorSpace : uint8_t {
Expand Down Expand Up @@ -496,6 +497,8 @@ enum StoreOp : uint8_t {

enum ShaderStage : uint8_t {
Stage_Vert,
Stage_Tesc,
Stage_Tese,
Stage_Geom,
Stage_Frag,
Stage_Comp,
Expand Down Expand Up @@ -580,12 +583,16 @@ struct RenderPipelineDesc final {
lvk::VertexInput vertexInput;

ShaderModuleHandle smVert;
ShaderModuleHandle smTesc;
ShaderModuleHandle smTese;
ShaderModuleHandle smGeom;
ShaderModuleHandle smFrag;

SpecializationConstantDesc specInfo = {};

const char* entryPointVert = "main";
const char* entryPointTesc = "main";
const char* entryPointTese = "main";
const char* entryPointFrag = "main";
const char* entryPointGeom = "main";

Expand All @@ -601,6 +608,7 @@ struct RenderPipelineDesc final {
StencilState frontFaceStencil = {};

uint32_t samplesCount = 1u;
uint32_t patchControlPoints = 0;

const char* debugName = "";

Expand Down

0 comments on commit e056232

Please sign in to comment.