Exemplo n.º 1
0
        public unsafe void SetScissor(int x, int y, uint width, uint height)
        {
            var scissor = new VkRect2D
            {
                offset =
                {
                    x = x,
                    y = y,
                },
                extent =
                {
                    width  = width,
                    height = height
                }
            };

            VulkanNative.vkCmdSetScissor(_handle, 0, 1, &scissor);
        }