Commit Graph
2 Commits
Author SHA1 Message Date
Jamie Madill d4b55a00d0 Fix "start" vertex being applied for instanced buffers.
In GLES, the start vertex only applies to non-instanced vertex
attributes.

BUG=angle:864
BUG=447140

Change-Id: Idd2afbfbd4c2e76e06b2704cc002fae26b353109
Reviewed-on: https://chromium-review.googlesource.com/239843
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Austin Kinross <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-09 21:41:01 +00:00
Austin Kinross 324bcc460a Fix instancing on D3D11 9_3, by ensuring slot zero contains non-instanced data
D3D11 Feature Level 9_3 supports instancing, but slot 0 in the input
layout must not be instanced. D3D9 has a similar restriction, where
stream 0 must not be instanced. This restriction can be worked around
by remapping any non-instanced slot to slot 0. This works because
HLSL uses shader semantics to match the vertex inputs to the elements
in the input layout, rather than the slots.

BUG=angle:858

Change-Id: I67b2be9095afc206a4b9f107ed61356820551afe
Reviewed-on: https://chromium-review.googlesource.com/237270
Tested-by: Austin Kinross <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
2015-01-05 18:09:01 +00:00