MoonWorksGraphicsTests/README.md

118 lines
4.1 KiB
Markdown
Raw Permalink Normal View History

2022-11-09 19:55:51 +00:00
Tests include:
**ClearScreen**
Clears the screen to CornflowerBlue. Mostly useful as a smoke test to make sure basic device init and render passes are working as intended.
**ClearScreen_MultiWindow**
Similar to above, but with two windows. Useful for testing window claim/unclaim logic and presenting to multiple swapchains.
**BasicTriangle**
Sets up a graphics pipeline and draws a triangle without vertex buffers. (The vertices are manually positioned in the vertex shader.) Also tests some basic rasterizer state with custom viewports, scissor rects, and fill/wireframe modes.
**TriangleVertexBuffer**
Similar to above, but using a MoonWorks vertex buffer and custom vertex structs.
**StoreLoad**
Draws a triangle to the screen in one render pass, stores the attachment, and then loads the attachment again. Tests that load/store operations work as expected.
2022-11-09 19:55:51 +00:00
**TexturedQuad**
Draws a textured quad to the screen. Tests texture binding, index buffers, and sampler states.
**AnimatedTexturedQuad**
Similar to above, but with rotating and color-blending animations. Tests vertex and fragment uniforms.
**MSAA**
Draws a basic triangle with varying MSAA sample counts.
**CullMode**
Draws several triangles with various culling modes and winding orders.
2022-11-12 03:57:38 +00:00
**GetBufferData**
Sets buffer data, gets the data back from the GPU, and prints the results to the console.
**Cube**
Renders a cubemap skybox and a spinning cube. Tests depth textures, sampling from depth textures, depth-only render passes, cube textures, and 32-bit index buffers.
2022-11-12 23:20:02 +00:00
**BasicCompute**
Uses compute pipelines to (1) fill a texture with yellow pixels then display it to the screen and (2) calculate the squares of the first 64 integers. Tests compute pipeline creation, compute dispatching, compute textures, and compute buffers.
**ComputeUniforms**
Uses a compute pipeline to fill a texture with a color gradient. Tests compute uniforms.
2023-01-03 18:27:48 +00:00
**DrawIndirect**
Draws two triangles via indirect commands. Tests DrawPrimitivesIndirect.
2023-01-07 01:53:33 +00:00
2023-01-22 20:14:23 +00:00
**InstancingAndOffsets**
Draws 16 instanced triangles. Tests DrawPrimitivesInstanced, vertex offsets, and index offsets.
2023-01-07 01:53:33 +00:00
**CompressedTextures**
Loads a series of compressed textures, then displays them for viewing. Tests compressed texture loading.
2023-01-07 23:03:12 +00:00
**CopyTexture**
2023-01-22 20:14:23 +00:00
Loads an image, then makes three copies of the image. One is a 1:1 scale image, another is a half-sized image (to test linear/nearest blitting), and the final copy is to a buffer. The buffer bytes are then compared with the original texture bytes to verify the copy's correctness. Tests CopyTextureToTexture and CopyTextureToBuffer.
2023-01-22 01:59:48 +00:00
**VideoPlayer**
Plays a sample Ogg Theora video file. Tests YUV textures and video rendering.
2023-01-22 21:21:31 +00:00
**Texture3D**
Displays 2D slices of a 3D texture. Tests creating and drawing 3D textures.
2023-01-22 21:49:35 +00:00
2023-01-23 04:42:19 +00:00
**TextureMipmaps**
Displays a quad that can be scaled to reveal various mip levels. The mips are generated from PNGs. Tests SetTextureData for mip levels and rendering mipmaps.
**VertexSampler**
Displays a triangle whose colors are driven by sampling a texture in the vertex shader.
**RenderTexture2D**
Clears and draws 4 render textures to the screen. Tests binding and sampling 2D render textures.
2023-01-23 00:51:09 +00:00
**RenderTexture3D**
Fades through 2D slices of a 3D render texture. Tests binding and sampling 3D render textures.
**RenderTextureCube**
2023-01-22 21:49:35 +00:00
Displays a cubemap generated by rendering to a cube render target. Tests binding and sampling cube render textures.
2023-01-23 02:25:01 +00:00
**RenderTextureMipmaps**
2023-01-23 02:25:01 +00:00
2023-01-23 04:42:19 +00:00
Displays a quad that can be scaled to reveal various mip levels. The mips are solid colors, generated by clearing various levels of the texture in a render pass. Tests rendering to mipmap levels of a render texture, mip LOD bias, min/max LODs, and mip filter modes.
**BasicStencil**
Demonstrates stencil masking using two triangles. Tests stencil buffers and basic stencil operations.
**DepthMSAA**
Displays two cubes floating around each other on a multisampled surface. Tests multisampled depth buffers.
2023-02-05 03:59:56 +00:00
2024-02-10 06:19:42 +00:00
**MSAACube**
Same as RenderTextureCube, but with MSAA cube RTs. Draws triangles to each cubemap face so there's something to see. Tests cube render target MSAA.
2023-02-05 03:59:56 +00:00
**WindowResizing**
Tests resizing the window to various resolutions.