Test suite for MoonWorks graphics
 
 
Go to file
cosmonaut 59d25a0ee7 update RenderTextureCube 2024-02-23 13:30:29 -08:00
BasicCompute update BasicCompute 2024-02-23 10:57:54 -08:00
BasicStencil update BasicStencil 2024-02-23 10:59:38 -08:00
BasicTriangle update BasicTriangle 2024-02-23 11:03:04 -08:00
ClearScreen .NET 8 2024-01-15 17:15:53 -08:00
ClearScreen_MultiWindow update ClearScreen_MultiWindow 2024-02-23 11:08:15 -08:00
CompressedTextures update CompressedTexture 2024-02-23 12:00:15 -08:00
ComputeUniforms update ComputeUniforms 2024-02-23 12:03:46 -08:00
CopyTexture update CopyTexture 2024-02-23 12:40:12 -08:00
Cube update CubeGame to use resourceInitializer 2024-02-23 10:12:47 -08:00
CullFace update CullFace 2024-02-23 12:42:01 -08:00
DepthMSAA update DepthMSAA 2024-02-23 12:49:17 -08:00
DrawIndirect update DrawIndirect 2024-02-23 12:51:42 -08:00
GetBufferData update GetBufferData 2024-02-23 13:04:59 -08:00
InstancingAndOffsets update InstancingAndOffsets 2024-02-23 13:06:53 -08:00
MSAA update MSAA 2024-02-23 13:09:23 -08:00
MSAACube Added MSAACube test + minor cleanup 2024-02-10 00:24:09 -06:00
MoonWorks.Test.Common Tabs, not spaces 2024-02-07 09:27:55 -06:00
RenderTexture2D update RenderTexture2D 2024-02-23 13:25:21 -08:00
RenderTexture3D update RenderTexture3D 2024-02-23 13:27:36 -08:00
RenderTextureCube update RenderTextureCube 2024-02-23 13:30:29 -08:00
RenderTextureMipmaps Tabs, not spaces 2024-02-07 09:27:55 -06:00
StoreLoad Configuration fixes + CopyMoonlibs.targets fixes 2024-02-06 21:34:14 -06:00
Texture3D Texture3D: Apply a slight offset to the fragment uniform to account for rounding errors 2024-02-07 10:09:48 -06:00
TextureMipmaps Tabs, not spaces 2024-02-07 09:27:55 -06:00
TexturedAnimatedQuad .NET 8 2024-01-15 17:15:53 -08:00
TexturedQuad update TexturedQuad 2024-02-23 00:07:51 -08:00
TriangleVertexBuffer .NET 8 2024-01-15 17:15:53 -08:00
VertexSampler Tabs, not spaces 2024-02-07 09:27:55 -06:00
VideoPlayer Tabs, not spaces 2024-02-07 09:27:55 -06:00
WindowResizing Tabs, not spaces 2024-02-07 09:27:55 -06:00
.gitignore Ignore Properties/ folders generated by VS2022 2024-02-07 09:25:26 -06:00
MoonWorksGraphicsTests.sln Added MSAACube test + minor cleanup 2024-02-10 00:24:09 -06:00
README.md Added MSAACube test + minor cleanup 2024-02-10 00:24:09 -06: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.

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.

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.

RenderTexture2D

Clears and draws 4 render textures to the screen. Tests binding and sampling 2D render textures.

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.

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.

WindowResizing

Tests resizing the window to various resolutions.