diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-09-17 15:06:17 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-09-23 11:15:00 -0600 |
| commit | 4cbf78b9e52a0e2dd3e13eccc137bb39ba8000c9 (patch) | |
| tree | 3e2578618b53deb438b241c1f0ca19e96933fdb5 /vulkan.py | |
| parent | b971e7234cc5c0aea1236e612d6bd3a3cd74cfd9 (diff) | |
| download | usermoji-4cbf78b9e52a0e2dd3e13eccc137bb39ba8000c9.tar.xz | |
bug 14365: replace dynamic state objects
This is phase 1 of the replacement of dynamic state objects.
In this commit we remove the create and destroy functions
and rename the CmdBind... with CmdSet...
Diffstat (limited to 'vulkan.py')
| -rwxr-xr-x | vulkan.py | 131 |
1 files changed, 40 insertions, 91 deletions
@@ -207,12 +207,6 @@ core = Extension( "VkSampler", "VkDescriptorPool", "VkDescriptorSet", - "VkDynamicViewportState", - "VkDynamicLineWidthState", - "VkDynamicDepthBiasState", - "VkDynamicBlendState", - "VkDynamicDepthBoundsState", - "VkDynamicStencilState", "VkRenderPass", "VkFramebuffer", ], @@ -650,61 +644,6 @@ core = Extension( Param("uint32_t", "copyCount"), Param("const VkCopyDescriptorSet*", "pDescriptorCopies")]), - Proto("VkResult", "CreateDynamicViewportState", - [Param("VkDevice", "device"), - Param("const VkDynamicViewportStateCreateInfo*", "pCreateInfo"), - Param("VkDynamicViewportState*", "pState")]), - - Proto("void", "DestroyDynamicViewportState", - [Param("VkDevice", "device"), - Param("VkDynamicViewportState", "dynamicViewportState")]), - - Proto("VkResult", "CreateDynamicLineWidthState", - [Param("VkDevice", "device"), - Param("const VkDynamicLineWidthStateCreateInfo*", "pCreateInfo"), - Param("VkDynamicLineWidthState*", "pState")]), - - Proto("void", "DestroyDynamicLineWidthState", - [Param("VkDevice", "device"), - Param("VkDynamicLineWidthState", "dynamicLineWidthState")]), - - Proto("VkResult", "CreateDynamicDepthBiasState", - [Param("VkDevice", "device"), - Param("const VkDynamicDepthBiasStateCreateInfo*", "pCreateInfo"), - Param("VkDynamicDepthBiasState*", "pState")]), - - Proto("void", "DestroyDynamicDepthBiasState", - [Param("VkDevice", "device"), - Param("VkDynamicDepthBiasState", "dynamicDepthBiasState")]), - - Proto("VkResult", "CreateDynamicBlendState", - [Param("VkDevice", "device"), - Param("const VkDynamicBlendStateCreateInfo*", "pCreateInfo"), - Param("VkDynamicBlendState*", "pState")]), - - Proto("void", "DestroyDynamicBlendState", - [Param("VkDevice", "device"), - Param("VkDynamicBlendState", "DynamicBlendState")]), - - Proto("VkResult", "CreateDynamicDepthBoundsState", - [Param("VkDevice", "device"), - Param("const VkDynamicDepthBoundsStateCreateInfo*", "pCreateInfo"), - Param("VkDynamicDepthBoundsState*", "pState")]), - - Proto("void", "DestroyDynamicDepthBoundsState", - [Param("VkDevice", "device"), - Param("VkDynamicDepthBoundsState", "dynamicDepthBoundsState")]), - - Proto("VkResult", "CreateDynamicStencilState", - [Param("VkDevice", "device"), - Param("const VkDynamicStencilStateCreateInfo*", "pCreateInfoFront"), - Param("const VkDynamicStencilStateCreateInfo*", "pCreateInfoBack"), - Param("VkDynamicStencilState*", "pState")]), - - Proto("void", "DestroyDynamicStencilState", - [Param("VkDevice", "device"), - Param("VkDynamicStencilState", "dynamicStencilState")]), - Proto("VkResult", "CreateCommandPool", [Param("VkDevice", "device"), Param("const VkCmdPoolCreateInfo*", "pCreateInfo"), @@ -744,30 +683,6 @@ core = Extension( Param("VkPipelineBindPoint", "pipelineBindPoint"), Param("VkPipeline", "pipeline")]), - Proto("void", "CmdBindDynamicViewportState", - [Param("VkCmdBuffer", "cmdBuffer"), - Param("VkDynamicViewportState", "dynamicViewportState")]), - - Proto("void", "CmdBindDynamicLineWidthState", - [Param("VkCmdBuffer", "cmdBuffer"), - Param("VkDynamicLineWidthState", "dynamicLineWidthState")]), - - Proto("void", "CmdBindDynamicDepthBiasState", - [Param("VkCmdBuffer", "cmdBuffer"), - Param("VkDynamicDepthBiasState", "dynamicDepthBiasState")]), - - Proto("void", "CmdBindDynamicBlendState", - [Param("VkCmdBuffer", "cmdBuffer"), - Param("VkDynamicBlendState", "DynamicBlendState")]), - - Proto("void", "CmdBindDynamicDepthBoundsState", - [Param("VkCmdBuffer", "cmdBuffer"), - Param("VkDynamicDepthBoundsState", "dynamicDepthBoundsState")]), - - Proto("void", "CmdBindDynamicStencilState", - [Param("VkCmdBuffer", "cmdBuffer"), - Param("VkDynamicStencilState", "dynamicStencilState")]), - Proto("void", "CmdBindDescriptorSets", [Param("VkCmdBuffer", "cmdBuffer"), Param("VkPipelineBindPoint", "pipelineBindPoint"), @@ -1035,6 +950,46 @@ core = Extension( [Param("VkCmdBuffer", "cmdBuffer"), Param("uint32_t", "cmdBuffersCount"), Param("const VkCmdBuffer*", "pCmdBuffers")]), + + Proto("void", "CmdSetViewport", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("uint32_t", "viewportAndScissorCount"), + Param("const VkViewport*", "pViewports"), + Param("const VkRect2D*", "pScissors")]), + + Proto("void", "CmdSetLineWidth", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("float", "lineWidth")]), + + Proto("void", "CmdSetDepthBias", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("float", "depthBias"), + Param("float", "depthBiasClamp"), + Param("float", "slopeScaledDepthBias")]), + + Proto("void", "CmdSetBlendConstants", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("const float*", "blendConst")]), + + Proto("void", "CmdSetDepthBounds", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("float", "minDepthBounds"), + Param("float", "maxDepthBounds")]), + + Proto("void", "CmdSetStencilCompareMask", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("VkStencilFaceFlags", "faceMask"), + Param("uint32_t", "stencilCompareMask")]), + + Proto("void", "CmdSetStencilWriteMask", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("VkStencilFaceFlags", "faceMask"), + Param("uint32_t", "stencilWriteMask")]), + + Proto("void", "CmdSetStencilReference", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("VkStencilFaceFlags", "faceMask"), + Param("uint32_t", "stencilReference")]), ], ) @@ -1176,12 +1131,6 @@ object_non_dispatch_list = [ "VkSampler", "VkDescriptorPool", "VkDescriptorSet", - "VkDynamicViewportState", - "VkDynamicLineWidthState", - "VkDynamicDepthBiasState", - "VkDynamicBlendState", - "VkDynamicDepthBoundsState", - "VkDynamicStencilState", "VkRenderPass", "VkFramebuffer", "VkSwapchainKHR", |
