Added swap-chain. (#3959)

This commit is contained in:
Branimir Karadžić
2026-09-05 01:44:33 +00:00
committed by GitHub
parent ad4a0173d6
commit 01dbbbc08c
99 changed files with 3839 additions and 2816 deletions

View File

@@ -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