Test suite for MoonWorks graphics
 
 
Go to file
Caleb Cornett 46bcdac0d7 Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
BasicCompute Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
BasicTriangle Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
ClearScreen Upgrade all projects to net7.0 2023-01-06 15:37:54 -05:00
ClearScreen_MultiWindow Upgrade all projects to net7.0 2023-01-06 15:37:54 -05:00
CompressedTextures Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
ComputeUniforms Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
CopyTexture Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
Cube Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
CullFace Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
DrawIndirect Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
GetBufferData Upgrade all projects to net7.0 2023-01-06 15:37:54 -05:00
MSAA Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
MoonWorks.Test.Common Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
TexturedAnimatedQuad Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
TexturedQuad Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
TriangleVertexBuffer Update all tests to use .refresh shaders instead of spv 2023-01-20 15:08:14 -05:00
.gitignore add some initial tests 2022-11-09 14:54:42 -05:00
MoonWorksGraphicsTests.sln Add CopyTexture test 2023-01-07 18:03:12 -05:00
README.md Add CopyTexture test 2023-01-07 18:03:12 -05:00

README.md

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.

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.

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.

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.

DrawIndirect

Draws two triangles via indirect commands. Tests DrawPrimitivesIndirect.

CompressedTextures

Loads a series of compressed textures, then displays them for viewing. Tests compressed texture loading.

CopyTexture

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, CopyTextureToBuffer, vertex offsets, and index offsets.