MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
3dmath_texture Directory Reference

Files

 
main.cpp

Detailed Description

3D Math Texture

3D Math Texture is the textured version of the software cube test. It uses the same CPU-side 3D path as 3dmath_cube, then adds PNG loading and software UV sampling. The software framebuffer defaults to 1280x720 and its Vulkan sprite is stretched to fit the window. Use --framebuffer WidthxHeight to override it.

Controls

  • Escape - quit

Inputs

  • --filename <file.png> or --texture <file.png> - texture image for the cube
  • --framebuffer <WidthxHeight> - internal software-rendering resolution

How It Works

The example transforms and rasterizes a cube in software, samples the selected PNG texture per triangle, and uploads the resulting frame as a sprite. It is useful for checking texture coordinates, clipping, and software raster output inside the MXVK render loop.