Front facing (#1904)

* Added BGFX_STATE_FRONT_CCW to defines.h and implemented initial usage only in renderer_d3d11.cpp.

* set front facing for d3d12, gl metal and vulkan

* front facing method Metal

* tabs

* removed tab
idl updated
This commit is contained in:
Cedric Guillemet
2019-10-26 05:07:05 +02:00
committed by Бранимир Караџић
parent 8ab1286a92
commit 6a883a33fd
8 changed files with 29 additions and 4 deletions

View File

@@ -83,6 +83,10 @@ flag.StateCull { bits = 64, shift = 36, range = 2, base = 1, desc = "Culling mod
.Ccw --- Cull counter-clockwise triangles.
()
--- Font facing. When BGFX_STATE_FRONT_CCW is not specified, front facing is CW
flag.StateFrontCCW { bits = 64, shift = 39, range = 1, base = 1, desc = "Front facing" }
()
--- Alpha reference value.
flag.StateAlphaRef { bits = 64, shift = 40, range = 8, desc = "Alpha reference", "helper" }