Partager via


Test Cases for the Direct3D Mobile Driver Comparison Test (Windows Embedded CE 6.0)

1/6/2010

The following table shows test cases for the Direct3D Mobile Driver Comparison Test.

Test case Description

0-99

Tests culling.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_CULLMODE:
    • D3DMCULL_CW
    • D3DMCULL_CCW
    • D3DMCULL_NONE
  • Primitive orientations:
    • Back facing
    • Front facing
    • Edge on

100-199

Tests lighting.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_AMBIENT, with a variety of settings
  • D3DMRS_AMBIENTMATERIALSOURCE:
    • D3DMMCS_COLOR1
    • D3DMMCS_COLOR2
    • D3DMMCS_MATERIAL
  • D3DMRS_COLORVERTEX:
    • FALSE
    • TRUE
  • D3DMRS_DIFFUSEMATERIALSOURCE:
    • D3DMMCS_COLOR1
    • D3DMMCS_COLOR2
    • D3DMMCS_MATERIAL
  • D3DMRS_LIGHTING:
    • FALSE
    • TRUE
  • D3DMRS_LOCALVIEWER:
    • FALSE
    • TRUE
  • D3DMRS_SPECULARENABLE:
    • FALSE
    • TRUE
  • D3DMRS_SPECULARMATERIALSOURCE:
    • D3DMMCS_COLOR1
    • D3DMMCS_COLOR2
    • D3DMMCS_MATERIAL
  • Flexible vertex format (FVF) values including various positions, normals, and colors
  • Various D3DMMATERIAL values for the IDirect3DMobileDevice::SetMaterial method
  • Various D3DMLIGHT values for the IDirect3DMobileDevice::SetLight method
  • Various D3DMMATRIX values for the IDirect3DMobileDevice::SetTransform method

200-299

Tests depth buffers.

These test cases render scenes that primarily cover permutations of the following factors:

  • Various D3DMCLEAR_ZBUFFER depth values for the IDirect3DMobileDevice::Clear method
  • D3DMPRIMITIVETYPE:
    • D3DMPT_POINTLIST
    • D3DMPT_LINELIST
    • D3DMPT_TRIANGLELIST
  • D3DMRS_ZENABLE:
    • D3DMZB_FALSE
    • D3DMZB_TRUE
  • D3DMRS_ZFUNC:
    • D3DMCMP_ALWAYS
    • D3DMCMP_NEVER
    • D3DMCMP_LESS
    • D3DMCMP_EQUAL
    • D3DMCMP_LESSEQUAL
    • D3DMCMP_GREATER
    • D3DMCMP_NOTEQUAL
    • D3DMCMP_GREATEREQUAL
  • D3DMRS_ZWRITEENABLE:
    • FALSE
    • TRUE
  • Vertex positions to exercise various depths

300-399

Tests primitive rasterization.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMPRIMITIVETYPE:
    • D3DMPT_POINTLIST
    • D3DMPT_LINELIST
    • D3DMPT_LINESTRIP
    • D3DMPT_TRIANGLELIST
    • D3DMPT_TRIANGLESTRIP
    • D3DMPT_TRIANGLEFAN
  • D3DMRS_COLORWRITEENABLE:
    • With and without D3DMCOLORWRITEENABLE_RED
    • With and without D3DMCOLORWRITEENABLE_GREEN
    • With and without D3DMCOLORWRITEENABLE_BLUE
  • D3DMRS_FILLMODE:
    • D3DMFILL_SOLID
    • D3DMFILL_POINT
    • D3DMFILL_WIREFRAME
  • FVF number format:
    • D3DMFMT_D3DMVALUE_FIXED
    • D3DMFMT_D3DMVALUE_FLOAT
  • Primitive drawing functions:
    • DrawPrimitive
    • DrawIndexedPrimitive
  • Primitive drawing range:
    • Various StartVertex and PrimitiveCount values for the DrawPrimitive function, both including cases that use all vertices within the active IDirect3DMobileVertexBuffer, and including cases that use only a subset of the vertices within the active IDirect3DMobileVertexBuffer
    • Various BaseVertexIndex, minIndex, NumVertices, startIndex, and PrimCount values for the DrawIndexedPrimitive function, including cases that use all vertices and indices within the active IDirect3DMobileVertexBuffer or IDirect3DMobileIndexBuffer, and cases that use only a subset of the vertices within the active IDirect3DMobileVertexBuffer or IDirect3DMobileIndexBuffer

400-599

Tests clipping.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMPRIMITIVETYPE:
    • D3DMPT_LINELIST
    • D3DMPT_TRIANGLELIST
  • D3DMRS_FILLMODE:
    • D3DMFILL_POINT
    • D3DMFILL_SOLID
    • D3DMFILL_WIREFRAME
  • D3DMRS_SHADEMODE:
    • D3DMSHADE_GOURAUD
    • D3DMSHADE_FLAT
  • FVF components with D3DMFVF_DIFFUSE, and with or without D3DMFVF_SPECULAR
  • Primitive position relative to the view frustum:
    • Primitives that are wholly outside of the view frustum
    • Primitives that are wholly inside of the view frustum
    • Primitives that are partially inside and partially outside of the view frustum

600-699

Tests FVF.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_SHADEMODE:
    • D3DMSHADE_GOURAUD
    • D3DMSHADE_FLAT
  • D3DMTSS_TEXTURETRANSFORMFLAGS:
    • With and without D3DMTTFF_PROJECTED
    • With and without D3DMTTFF_COUNT2
    • With and without D3DMTTFF_COUNT3
  • FVF components:
    • With and without D3DMFVF_DIFFUSE
    • With and without D3DMFVF_SPECULAR
    • With and without the texture coordinate counts D3DMFVF_TEX1, D3DMFVF_TEX2, D3DMFVF_TEX3, and D3DMFVF_TEX4
    • With and without the texture coordinate sizes D3DMFVF_TEXCOORDSIZE1(0), D3DMFVF_TEXCOORDSIZE2(0), and D3DMFVF_TEXCOORDSIZE3(0)

700-899

Tests fogging.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_FOGCOLOR:
    • Various D3DMCOLOR settings
  • D3DMRS_FOGDENSITY:
    • Various values in the [0.0f, 1.0f] range
  • D3DMRS_FOGENABLE:
    • TRUE
    • FALSE
  • D3DMRS_FOGSTART, D3DMRS_FOGEND:
    • For D3DMRS_FOGTABLEMODE, various values in the [0.0f, 1.0f] range
    • For D3DMRS_FOGVERTEXMODE, various values in the [fNear, fFar] range, where fNear and fFar are view frustum planes
  • D3DMRS_FOGTABLEMODE:
    • D3DMFOG_NONE
    • D3DMFOG_LINEAR
    • D3DMFOG_EXP
    • D3DMFOG_EXP2
  • D3DMRS_FOGVERTEXMODE:
    • D3DMFOG_NONE
    • D3DMFOG_LINEAR
    • D3DMFOG_EXP
    • D3DMFOG_EXP2
  • D3DMTRANSFORMSTATETYPE:
    • D3DMTS_PROJECTION settings with various near and far planes

900-999

Tests mipmaps.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMTSS_MAGFILTER:
    • D3DMTEXF_POINT
    • D3DMTEXF_LINEAR
    • D3DMTEXF_ANISOTROPIC
  • D3DMTSS_MINFILTER:
    • D3DMTEXF_POINT
    • D3DMTEXF_LINEAR
    • D3DMTEXF_ANISOTROPIC
  • D3DMTSS_MIPFILTER:
    • D3DMTEXF_NONE
    • D3DMTEXF_POINT
    • D3DMTEXF_LINEAR
  • D3DMTSS_MIPMAPLODBIAS:
    • Various values in the [-2.0f, 2.0f] range
  • Primitive vertices, which vary to produce primitive extents that can isolate specific mipmap levels

1000-2099

Tests transformations.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMTRANSFORMSTATETYPE settings:
    • Various rotation, shear, scale, and translation matrices for D3DMTS_VIEW
    • Various rotation, shear, scale, and translation matrices for D3DMTS_WORLD

2100-2299

Tests StretchRect operations.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMPOOL, for source and destination surfaces:
    • D3DMPOOL_VIDEOMEM
    • D3DMPOOL_SYSTEMMEM
  • D3DMTEXTUREFILTERTYPE:
    • D3DMTEXF_NONE
    • D3DMTEXF_LINEAR
    • D3DMTEXF_POINT
  • IDirect3DMobileSurface, originating from GetBackBuffer, CreateImageSurface, and IDirect3DMobileTexture::GetSurfaceLevel
  • Relative source and destination RECT extents:
    • Identical extents
    • Extents requiring shrinking
    • Extents requiring stretching

2500-2599

Tests CopyRect operations.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMPOOL, for source and destination surfaces:
    • D3DMPOOL_VIDEOMEM
    • D3DMPOOL_SYSTEMMEM
  • IDirect3DMobileSurface, originating from GetBackBuffer, CreateImageSurface, and IDirect3DMobileTexture::GetSurfaceLevel

2700-2799

Tests ColorFill operations.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMPOOL, for source and destination surfaces:
    • D3DMPOOL_VIDEOMEM
    • D3DMPOOL_SYSTEMMEM

IDirect3DMobileSurface, originating from GetBackBuffer, CreateImageSurface, and IDirect3DMobileTexture::GetSurfaceLevel

2800-2899

Tests last pixels.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_LASTPIXEL:
    • FALSE
    • TRUE
  • D3DMPRIMITIVETYPE:
    • D3DMPT_LINELIST
    • D3DMPT_LINESTRIP

3000-3099

Tests texture wrapping.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_WRAP0 settings:
    • D3DMWRAPCOORD_0
    • D3DMWRAPCOORD_1
    • D3DMWRAPCOORD_0 | D3DMWRAPCOORD_1
  • FVF components:
    • D3DMFVF_TEX1 with D3DMFVF_TEXCOORDSIZE1(0)
    • D3DMFVF_TEX1 with D3DMFVF_TEXCOORDSIZE2(0)
  • FVF component values, including various position and texture coordinate values

3100-3299

Tests alpha test operations.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMTSS_ALPHAARG1:
    • D3DMTA_DIFFUSE
    • D3DMTA_TEXTURE
  • D3DMTSS_ALPHAARG2:
    • D3DMTA_CURRENT
    • D3DMTA_DIFFUSE
  • D3DMRS_ALPHAFUNC:
    • D3DMCMP_ALWAYS
    • D3DMCMP_NEVER
    • D3DMCMP_LESS
    • D3DMCMP_EQUAL
    • D3DMCMP_LESSEQUAL
    • D3DMCMP_GREATER
    • D3DMCMP_NOTEQUAL
    • D3DMCMP_GREATEREQUAL
  • D3DMTSS_ALPHAOP:
    • D3DMTOP_MODULATE
    • D3DMTOP_SELECTARG1
  • D3DMRS_ALPHAREF:
    • Various values in the [0,255] range
  • Contents of various surfaces

3500-3599

Tests depth bias.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMRS_DEPTHBIAS
  • D3DMRS_SLOPESCALEDEPTHBIAS
  • FVF component values, including various position and diffuse color values

3600-3699

Tests swap chains.

These test cases render scenes that primarily cover permutations of the following factors:

3700-3799

Tests drawing.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMPRIMITIVETYPE:
    • D3DMPT_TRIANGLELIST
    • D3DMPT_TRIANGLESTRIP
  • D3DMRS_CULLMODE:
    • D3DMCULL_CW
    • D3DMCULL_CCW
    • D3DMCULL_NONE
  • Various drawing orders among primitives with identical depth values

4000-4799

Tests texture stages.

These test cases render scenes that primarily cover permutations of the following factors:

  • D3DMTEXTUREOP:
    • D3DMTOP_SELECTARG1
    • D3DMTOP_SELECTARG2
    • D3DMTOP_MODULATE
    • D3DMTOP_MODULATE2X
    • D3DMTOP_MODULATE4X
    • D3DMTOP_ADD
    • D3DMTOP_ADDSIGNED
    • D3DMTOP_ADDSIGNED2X
    • D3DMTOP_SUBTRACT
    • D3DMTOP_ADDSMOOTH
    • D3DMTOP_BLENDDIFFUSEALPHA
    • D3DMTOP_BLENDTEXTUREALPHA
    • D3DMTOP_BLENDFACTORALPHA
    • D3DMTOP_BLENDTEXTUREALPHAPM
    • D3DMTOP_MULTIPLYADD
    • D3DMTOP_LERP
  • D3DMTSS_COLORARG0, D3DMTSS_ALPHAARG0, D3DMTSS_COLORARG1, D3DMTSS_ALPHAARG1, D3DMTSS_COLORARG2, D3DMTSS_ALPHAARG2:
    • D3DMTA_TFACTOR
    • D3DMTA_SPECULAR
    • D3DMTA_TEXTURE
    • D3DMTA_DIFFUSE
    • D3DMTA_COMPLEMENT
    • D3DMTA_ALPHAREPLICATE
  • Various D3DMCOLOR values input as texture parameters

See Also

Other Resources

Direct3D Mobile Driver Comparison Test