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
/* | |
* fxc /nologo shader.hlsl /Fovs.bin /EVertex /Tvs_5_0 | |
* fxc /nologo shader.hlsl /Fops.bin /EPixel /Tps_5_0 | |
* clang learn-d3d12.c -o a.exe -g -Wall -fuse-ld=lld | |
*/ | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdio.h> |
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
// Top-level declarations | |
static double parse_add(void); | |
static const char* state; | |
// Checks if state is a valid digit | |
static int is_digit(void) { | |
return *state >= '0' && *state <= '9'; | |
} | |
// Get the digit value of state |