Skip to main content

Module gpu3d

Module gpu3d 

Source
Expand description

Hardware-Accelerated 3D GPU Render Pipeline and WGSL Shaders.

Provides direct GPU vertex and fragment pipelines with depth-stencil textures (Depth32Float), uniform buffers for model-view-projection matrices, multi-light Blinn-Phong shading, and compositing the rendered 3D viewport into the 2D display list.

Structs§

Gpu3DPipeline
Hardware GPU 3D rendering pipeline managing vertex/index buffers and draw passes.
Gpu3DUniforms
Packed uniform buffer data for 3D shaders.
Gpu3DVertex
3D vertex layout for GPU vertex buffer upload.
GpuRteUniforms
Packed uniform buffer data for Relative-To-Eye (RTE) 3D shaders.
GpuRteVertex
3D vertex layout for GPU Relative-To-Eye (RTE) double-single vertex buffer upload.

Constants§

WGSL_3D_RTE_SHADER
Standard WGSL shader for Relative-To-Eye (RTE) double-single 3D meshes on GPU.
WGSL_3D_STANDARD_SHADER
Standard WGSL shader for hardware-accelerated 3D meshes with depth testing and lighting.

Functions§

mat4_to_cols_2d