diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-16 18:55:58 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-16 18:55:58 +0200 |
commit | 107684b00d65eac84e4bf2dfd34073d309230d50 (patch) | |
tree | 131215f9b95d1a8a24fa92c99982ee691a7b4724 /blobheader | |
parent | 766a817a23403ea2aeb325bea9f340f54a3e7987 (diff) |
move shader compilation from runtime to compile-time
Diffstat (limited to 'blobheader')
-rwxr-xr-x | blobheader | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/blobheader b/blobheader deleted file mode 100755 index c188205..0000000 --- a/blobheader +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -source="$1" -symbol_base="$(echo "$source" | tr '[:punct:]' '_')" -cat << EOF -#pragma once -// NOTE: THIS FILE IS GENERATED, DO NOT EDIT -#include <stddef.h> - -extern char _binary_${symbol_base}_start; -extern char _binary_${symbol_base}_end; - -#define ${symbol_base} ((const char* const)(&_binary_${symbol_base}_start)) -#define ${symbol_base}_size ((size_t)(&_binary_${symbol_base}_end - &_binary_${symbol_base}_start)) - -EOF |