Skip to content

Instantly share code, notes, and snippets.

View Kittoes0124's full-sized avatar
🏠
Working from home

David Smith Kittoes0124

🏠
Working from home
View GitHub Profile
@Kittoes0124
Kittoes0124 / Vulkan - Hello Triangle.cs
Last active January 6, 2020 04:13
Uses the ByteTerrace.Native.Vulkan library to implement the code found in this guide: https://vulkan-tutorial.com/Drawing_a_triangle.
/*
Install-Package ByteTerrace.Native.Vulkan
*/
using ByteTerrace.Native.Vulkan;
using ByteTerrace.Native.Vulkan.Enums;
using ByteTerrace.Native.Vulkan.Handles;
using ByteTerrace.Native.Vulkan.Structs;
using ByteTerrace.Native.Windows;
using System;
using System;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security;
namespace ByteTerrace.Windows.Api
{
static class BitwiseHelpers
{
public static uint ConcatBits(ushort highPart, ushort lowPart) => ((((uint)highPart) << 16) | lowPart);
COMMENT @
C Interface:
extern char* Rfc4180_ReadRow(const char* bufferOffset, const char* bufferTail, long long isQuotedSequence);
Reference:
https://tools.ietf.org/html/rfc4180
@
;-----------------------------; (CONSTANTS)
CARRIAGE_RETURN = 00Dh