Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am ryp on github.
  • I am schuel_t (https://keybase.io/schuel_t) on keybase.
  • I have a public key ASCCqeO3eA8z-xpfPt7otiOTUFVnpi5_wg9577f_zSPbRwo

To claim this, I am signing this object:

View hlsl_interop.cpp
struct alignas(16) sl_float3
{
float x;
float y;
float z;
};
static_assert(alignof(sl_float3) == 16);
static_assert(sizeof(sl_float3) == 12);
@Ryp
Ryp / literals.h
Last active Aug 14, 2016
User defined literals
View literals.h
constexpr std::size_t operator "" _kB(unsigned long long int sizeInkB)
{
return sizeInkB << 10;
}
constexpr std::size_t operator "" _MB(unsigned long long int sizeInMB)
{
return sizeInMB << 20;
}
@Ryp
Ryp / log.hpp
Last active Mar 6, 2016
Over engineered C++11 log class
View log.hpp
/**
* \file log.hpp
* \author Thibault Schueller <ryp.sqrt@gmail.com>
* \brief Log class declaration
*/
#ifndef LOG_HPP
#define LOG_HPP
#include <string>