adding point rasterization

This commit is contained in:
2026-06-19 00:42:46 +02:00
parent b8367ac2bb
commit aaf6653b3f
8 changed files with 105 additions and 71 deletions
+2
View File
@@ -55,6 +55,7 @@ pub const DynamicState = struct {
pub const Vertex = struct {
primitive_restart: bool,
position: F32x4,
point_size: f32,
outputs: [spv.SPIRV_MAX_OUTPUT_LOCATIONS][4]?struct {
interpolation_type: enum { smooth, flat, noperspective },
blob: []u8,
@@ -106,6 +107,7 @@ pub const DrawCall = struct {
for (self.vertices) |*vertex| {
vertex.primitive_restart = false;
vertex.point_size = 1.0;
for (&vertex.outputs) |*location| {
@memset(location, null);
}