shader: Implement tessellation shaders, polygon mode and invocation id

This commit is contained in:
ReinUsesLisp 2021-04-15 22:46:11 -03:00 committed by ameerj
parent 34519d3fc6
commit 183855e396
28 changed files with 605 additions and 91 deletions

View file

@ -38,6 +38,18 @@ enum class CompareFunction {
Always,
};
enum class TessPrimitive {
Isolines,
Triangles,
Quads,
};
enum class TessSpacing {
Equal,
FractionalOdd,
FractionalEven,
};
struct TransformFeedbackVarying {
u32 buffer{};
u32 stride{};
@ -74,6 +86,10 @@ struct Profile {
bool convert_depth_mode{};
bool force_early_z{};
TessPrimitive tess_primitive{};
TessSpacing tess_spacing{};
bool tess_clockwise{};
InputTopology input_topology{};
std::optional<float> fixed_state_point_size;