made it 62 quad in size

This commit is contained in:
mcrcortex
2024-04-14 04:05:07 +10:00
parent 2b8efbfb8f
commit cce96fc867
6 changed files with 55 additions and 22 deletions

View File

@@ -7,7 +7,7 @@
#import <voxy:lod/section.glsl>
#define extractMeshletStart extractQuadStart
layout(local_size_x = 64) in;
#define QUADS_PER_MESHLET 126
#define QUADS_PER_MESHLET 62
void emitMeshlets(inout uint mli, inout uint meshletPtr, uint mskedCnt, uint cnt) {
for (;mskedCnt != 0; mskedCnt--,mli++) {

View File

@@ -1,8 +1,8 @@
#version 450
#extension GL_ARB_gpu_shader_int64 : enable
#define QUADS_PER_MESHLET 62
#define MESHLET_ACCESS readonly
#define QUADS_PER_MESHLET 126
//There are 16 bytes of metadata at the start of the meshlet
#define MESHLET_SIZE (QUADS_PER_MESHLET+2)
#import <voxy:lod/quad_format.glsl>