Skip to content

Instantly share code, notes, and snippets.

View vertver's full-sized avatar
🍉

vertver vertver

🍉
View GitHub Profile
@vertver
vertver / faithful_ntsc.fx
Last active September 10, 2026 19:41
Faithful NTSC HLSL filter
/***************************************************************************************
* Copyright (C) Anton Kovalev (vertver), 2026. All rights reserved.
* HLSL single-pass NTSC filter
* MIT License
***************************************************************************************
* shout out to LMP88959, which implemented an awesome NTSC emulation (fixed-point).
* https://github.com/LMP88959/NTSC-CRT
***************************************************************************************/
//Original: https://gist.github.com/vertver/670a85babb52f20ba6b5e08e5f02f08e
@vertver
vertver / dxbc_compiler.c
Last active December 12, 2024 22:07
Simple FXC replacement compiler written on C
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
typedef struct ID3DInclude *PID3DInclude;
class DynamicBuffer
{
private:
struct MemoryRange
{
void* Data = nullptr;
std::size_t Size = 0;
std::size_t Offset = 0;
};
// simple.espl
/*
EFOSPL - Extented'n'Fast Obfuscated Signal Processing Language.
Yes, it's obfuscated.
firstly, syntax:
1. You don't need to add bracket to end of line: compiler just ignore it.
Exception: if you want to combine two operations in one line - you must
to separate it with ';'.