asahi: Add a depth bias structure
This is simple and corresponds directly to the Metal inputs. However, the alignment is a bit tricky, so let's add formal XML for it. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>
This commit is contained in:
parent
cb760a00c2
commit
666f307d41
|
@ -293,6 +293,13 @@
|
|||
<field name="Max Z" size="32" start="3:0" type="float"/>
|
||||
</struct>
|
||||
|
||||
<!-- Note: this structure is not padded. It really is 12 bytes -->
|
||||
<struct name="Depth bias" size="12">
|
||||
<field name="Depth bias" size="32" start="0:0" type="float"/>
|
||||
<field name="Slope scale" size="32" start="1:0" type="float"/>
|
||||
<field name="Clamp" size="32" start="2:0" type="float"/>
|
||||
</struct>
|
||||
|
||||
<struct name="Rasterizer face" size="8">
|
||||
<field name="Stencil reference" size="8" start="0:0" type="hex"/>
|
||||
<!-- line width is 4:4 fixed point with off-by-one applied -->
|
||||
|
|
Loading…
Reference in New Issue