mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-07 19:18:14 +00:00
Added swap-chain. (#3959)
This commit is contained in:
committed by
GitHub
parent
ad4a0173d6
commit
01dbbbc08c
@@ -214,7 +214,7 @@ function gen.gen()
|
||||
return r
|
||||
end
|
||||
|
||||
local combined = { "State", "Stencil", "Buffer", "Texture", "Sampler", "Reset" }
|
||||
local combined = { "State", "Stencil", "Buffer", "Texture", "Sampler", "Reset", "SwapChain" }
|
||||
|
||||
for _, v in ipairs(combined) do
|
||||
combined[v] = {}
|
||||
@@ -317,7 +317,10 @@ function converter.types(params)
|
||||
enum["[" .. typ.typename .. "::Count]"] = #typ.enum
|
||||
|
||||
elseif typ.bits ~= nil then
|
||||
local prefix, name = typ.name:match "(%u%l+)(.*)"
|
||||
local prefix, name = typ.name:match "(%u%l+%u%l+)(.*)"
|
||||
if not combined[prefix] then
|
||||
prefix, name = typ.name:match "(%u%l+)(.*)"
|
||||
end
|
||||
if prefix ~= lastCombinedFlag then
|
||||
lastCombinedFlagBlock()
|
||||
lastCombinedFlag = prefix
|
||||
|
||||
Reference in New Issue
Block a user