Skip to content

[DirectX][SPRIV] Allow configuration of instanced draw parameters #1444

Description

@inbelic

Required for testing SV_InstanceID, SV_StartVertexLocation, and SV_StartInstanceLocation.

Current status: the test harness has all of InstanceCount, FirstVertex, and FirstInstance hardcoded at the
call sites that invoke Encoder::drawInstanced. We will need to add yaml config to pass these parameters through so they can be specified.

AC:

  • Add YAML config for InstanceCount, FirstVertex and FirstInstance to DispatchParametersSet
  • Pass all three values through at the three drawInstanced call sites
  • Add an SV_InstanceID test to check this is assigned correctly using a readback buffer
  • Add SV_StartVertexLocation / SV_StartInstanceLocation test to check these values assigned correctly using a readback buffer

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status
Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions