Test suite for MoonWorks graphics
 
 
Go to file
cosmonaut c84668b4b3 update tests for new image loader API 2023-04-18 23:39:45 -07:00
BasicCompute update tests for MoonWorks API changes 2023-04-05 12:41:19 -07:00
BasicStencil Fix stencil mask values 2023-01-26 22:39:04 -05:00
BasicTriangle Use .refresh shaders instead of .spv (#1) 2023-01-21 00:57:25 +00: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 Use .refresh shaders instead of .spv (#1) 2023-01-21 00:57:25 +00:00
ComputeUniforms Use .refresh shaders instead of .spv (#1) 2023-01-21 00:57:25 +00:00
CopyTexture update tests for new image loader API 2023-04-18 23:39:45 -07:00
Cube update tests for new image loader API 2023-04-18 23:39:45 -07:00
CullFace Use .refresh shaders instead of .spv (#1) 2023-01-21 00:57:25 +00:00
DepthMSAA Add DepthMSAA test + update other tests for new ABI + misc cleanup 2023-01-30 22:39:13 -05:00
DrawIndirect Use .refresh shaders instead of .spv (#1) 2023-01-21 00:57:25 +00:00
GetBufferData update tests for MoonWorks API changes 2023-04-05 12:41:19 -07:00
InstancingAndOffsets Make the folder match the project name... 2023-01-22 15:16:01 -05:00
MSAA Add DepthMSAA test + update other tests for new ABI + misc cleanup 2023-01-30 22:39:13 -05:00
MoonWorks.Test.Common update tests for QOI support 2023-04-03 23:13:37 -07:00
RenderTexture3D Add DepthMSAA test + update other tests for new ABI + misc cleanup 2023-01-30 22:39:13 -05:00
RenderTextureCube Add DepthMSAA test + update other tests for new ABI + misc cleanup 2023-01-30 22:39:13 -05:00
RenderTextureMipmaps Add DepthMSAA test + update other tests for new ABI + misc cleanup 2023-01-30 22:39:13 -05:00
Texture3D update tests for new image loader API 2023-04-18 23:39:45 -07:00
TextureMipmaps update tests for new image loader API 2023-04-18 23:39:45 -07:00
TexturedAnimatedQuad update tests for new image loader API 2023-04-18 23:39:45 -07:00
TexturedQuad update tests for new image loader API 2023-04-18 23:39:45 -07:00
TriangleVertexBuffer Use .refresh shaders instead of .spv (#1) 2023-01-21 00:57:25 +00:00
VertexSampler Use Texture.CreateTexture* instead of using TextureCreateInfo 2023-01-22 20:03:48 -05:00
VideoPlayer Add VideoPlayer test 2023-01-21 20:59:48 -05:00
WindowResizing Add WindowResizing test 2023-02-04 22:59:56 -05:00
.gitignore add some initial tests 2022-11-09 14:54:42 -05:00
MoonWorksGraphicsTests.sln Add WindowResizing test 2023-02-04 22:59:56 -05:00
README.md Add WindowResizing test 2023-02-04 22:59:56 -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.

InstancingAndOffsets

Draws 16 instanced triangles. Tests DrawPrimitivesInstanced, vertex offsets, and index offsets.

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 and CopyTextureToBuffer.

VideoPlayer

Plays a sample Ogg Theora video file. Tests YUV textures and video rendering.

Texture3D

Displays 2D slices of a 3D texture. Tests creating and drawing 3D textures.

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.

RenderTexture3D

Fades through 2D slices of a 3D render texture. Tests binding and sampling 3D render textures.

RenderTextureCube

Displays a cubemap generated by rendering to a cube render target. Tests binding and sampling cube render textures.

RenderTextureMipmaps

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.

WindowResizing

Tests resizing the window to various resolutions.