- Designing a Modern GPU Interface by @BrookeHodgman
- Optimizing the Graphics Pipeline with Compute by @gwihlidal
- GPU Driven Rendering Pipelines by @SebAaltonen
- Destiny’s Multi-threaded Renderer Architecture by @Mirror2Mask
- Stingray Renderer Walkthrough by @tobias_persson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dumpbin -symbols main.obj | |
Microsoft (R) COFF/PE Dumper Version 14.00.24213.1 | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Dump of file main.obj | |
File Type: COFF OBJECT | |
COFF SYMBOL TABLE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define 👉 -> | |
struct vec3 { | |
int x, y, z; | |
}; | |
void print_vec(struct vec3 *v) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
static char bom[3] = { 0xEF, 0xBB, 0xBF }; | |
#define error(msg) error__(msg, __LINE__) | |
static int | |
error__(char const *msg, int line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _MSC_VER | |
#pragma warning(push, 0) | |
#include <windows.h> | |
#pragma warning(pop) | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WORDS=$(cat /usr/share/dict/words) | |
IFS=$'\n' | |
LC_ALL=C | |
echo "" > domains.txt | |
for word in $WORDS; do | |
if [[ $word =~ ^[A-Za-z]{4,12}$ ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define BUF 4096 | |
int main(int argc, char **argv) | |
{ | |
FILE *f; | |
int i, n, nl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2018 Arvid Gerstmann. | |
* This software may be modified and distributed under the terms | |
* of the MIT license. See the LICENSE file for details. | |
*/ | |
#include <stdio.h> | |
/*lua! | |
local func = [[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int | |
foo_can_fail(void) | |
{ | |
bar_t bar; | |
if (bar_init(&bar)) | |
return 1; | |
if (bar_do_stuff(&bar)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ... some code calling the function below ... */ | |
static int | |
gui_mkdev(void) | |
{ | |
struct gui_state *s = g_state->gui_state; | |
s->vshader = mem_calloc(sizeof(struct gfx_shader)); | |
s->vshader->id = 0x1; | |
s->vshader->len = 20; |