Exemplo n.º 1
0
        public unsafe void SetViewport(int x, int y, uint width, uint height)
        {
            var viewport = new VkViewport
            {
                x        = x,
                y        = y,
                width    = width,
                height   = height,
                minDepth = 0,
                maxDepth = 1
            };

            VulkanNative.vkCmdSetViewport(
                _handle,
                0,
                1,
                &viewport
                );
        }