Skip to content

Instantly share code, notes, and snippets.

View gwihlidal's full-sized avatar
💭
Enjoying Rust!

Graham Wihlidal gwihlidal

💭
Enjoying Rust!
View GitHub Profile
@gwihlidal
gwihlidal / keybase.md
Created November 28, 2018 13:55
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am gwihlidal on github.
  • I am gwihlidal (https://keybase.io/gwihlidal) on keybase.
  • I have a public key ASCxkokKlcwz9t4rYJLGZ02BCsBlW3bTGZgcdsgVOBw1SAo

To claim this, I am signing this object:

@gwihlidal
gwihlidal / NegativeViewportHeight.cpp
Last active March 16, 2023 09:35
Example of Vulkan negative viewport height extension
// With the VK_KHR_maintenance1 extension, you can specify negative viewport height.
// This allows negative height to be specified in the height field to perform a
// y-inversion of the clip-space to framebuffer-space transform. This allows you
// to avoid having to use gl_Position.y = -gl_Position.y, and makes porting to other
// APIs like DirectX12 much easier.
// You negate the height *and* move the "origin" to the bottom left.
// Unlike the original AMD extension which just negated height.
VkViewport viewport = {};