gbuffer formats, T# sizes and mesh shader barriers

Abierto
#603 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Activo

Línea de trabajo

This is a set of informal notes rather than a request for a change, and it names no files or tests. The three topics are G-buffer packing (8-bit unorm normals and ID bytes versus f16 targets), the image_load bounds check driven by T# width and height, and mesh shader barriers inside dispatch loops. Work out which of these the project actually needs before starting, and treat the issue as context for the deferred material and lighting passes rather than a task with a clear finish line.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

heads up for when you peeps start running the material + lighting passes lol

heyy me again, been poking at the deferred side on my own and hit a couple of things that might save you peeps some pain later

first one is the gbuffer formats, the material shaders pack some stuff into plain bytes (the normal is octahedral packed across 3 bytes of one target, and theres some id bytes in another) and the lighting shaders unpack them with a times 255 and a truncate so if those render targets arent 8 bit unorm like on the console, like if u use f16 for everything u lose a byte in a bunch of pixels and the normals go weird and u get sparkly garbage in the specular. took me a while to figure that one out ngl

second, the image_load bounds check uses the width and height from the T# so if ur test descriptors dont have a real size in them every load except pixel 0,0 comes back zero and the lighting looks completely black even though everything else is right lol

third, for the mesh shaders with s_barrier, a wave that already ended doesnt count for the barrier on amd but in vulkan everything has to stay alive to write the outputs, and on nvidia the lanes inside the dispatch loop dont stay together, so barrier() deep in the loop can hang the gpu. what worked for me was leaving the loop at the barrier, syncing at the top level and keeping track of which waves finished

anyway just dropping it here, cool to see the mesh v5 fix btw :3

Lenguaje dominante
Python
Estrellas
14.9k
Forks
1.2k
Merge medio
1 h 58 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ItsNotRexed/Leonida

Todos los issues de ItsNotRexed/Leonida

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.