Skip to content

Instantly share code, notes, and snippets.

View unclejimbo's full-sized avatar
🛵
Back to office

王少东 (Shaodong Wang) unclejimbo

🛵
Back to office
View GitHub Profile
@unclejimbo
unclejimbo / vkCreateRenderPass2KHR.cpp
Last active January 13, 2020 08:21
Trying to use vkCreateRenderPass2KHR
namespace _impl
{
static inline VkResult vkCreateRenderPass2KHR(
VkInstance instance,
VkDevice device,
const VkRenderPassCreateInfo2KHR* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkRenderPass* pRenderPass)
{
auto func = (PFN_vkCreateRenderPass2KHR)vkGetInstanceProcAddr(
@unclejimbo
unclejimbo / AlmostEquals.h
Created January 29, 2018 07:30 — forked from notanaverageman/AlmostEquals.h
Google Test Floating Point Equality
// Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above