latest version here: https://github.com/mmozeiko/build-mesa
This file contains 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
// example how to set up D3D11 rendering on Windows in C | |
#define COBJMACROS | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <d3d11.h> | |
#include <dxgi1_3.h> | |
#include <d3dcompiler.h> | |
#include <dxgidebug.h> |
This file contains 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
// example how to set up OpenGL core context on Windows | |
// and use basic functionality of OpenGL 4.5 version | |
// important extension functionality used here: | |
// (4.3) KHR_debug: https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_debug.txt | |
// (4.5) ARB_direct_state_access: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_direct_state_access.txt | |
// (4.1) ARB_separate_shader_objects: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_separate_shader_objects.txt | |
// (4.2) ARB_shading_language_420pack: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_shading_language_420pack.txt | |
// (4.3) ARB_explicit_uniform_location: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_explicit_uniform_location.txt |
This file contains 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
#define COBJMACROS | |
#define NOMINMAX | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <d3d11.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <intrin.h> |
This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
rem !!! build requirements !!! | |
rem Visual Studio 2022 - https://visualstudio.microsoft.com/vs/ | |
rem 7-Zip - https://www.7-zip.org/download.html | |
rem Python - https://www.python.org/downloads/ | |
rem CMake - http://www.cmake.org/download/ | |
rem ninja.exe - https://github.com/ninja-build/ninja/releases/latest |
This file contains 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
// this code will work only when compiled as 64-bit code, and on Windows 10 | |
// older Windows version might require different structure definitions | |
#define NOMINMAX | |
#define INITGUID | |
#include <windows.h> | |
#include <evntrace.h> | |
#include <evntcons.h> | |
#pragma comment (lib, "shell32.lib") |
- compile dxgi.c & d3d11.c files - these create dxgi.dll and d3d11.dll that allows to dump & replace shaders.
cl.exe /nologo /O2 /W3 /MT dxgi.c /link /DLL /OUT:dxgi.dll /INCREMENTAL:NO kernel32.lib user32.lib
cl.exe /nologo /O2 /W3 /MT d3d11.c /link /DLL /OUT:d3d11.dll /INCREMENTAL:NO kernel32.lib user32.lib d3dcompiler.lib dxguid.lib shlwapi.lib
-
put
dxgi.dll
andd3d11.dll
files next toChildrenOfMorta.exe
-
create
d3d11_shaders
folder next toChildrenOfMorta.exe
and putps_b1c05ceb9ca8a14c.hlsl
into this folder.
This file contains 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 <stdarg.h> | |
#include <stdio.h> | |
static void write(FILE* f, const char* fmt, ...) | |
{ | |
va_list ap; | |
va_start(ap, fmt); | |
char ch; | |
while ((ch = *fmt++)) | |
{ |
This file contains 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
// generic A* pathfinding | |
// | |
// INTERFACE | |
// | |
// mandatory macros | |
#ifndef ASTAR_POS_TYPE | |
#error ASTAR_POS_TYPE should specify position type |
This file contains 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
EGL_VERSION: 1.5 | |
EGL_VENDOR: NVIDIA | |
EGL_EXTENSIONS: | |
EGL_EXT_buffer_age, EGL_EXT_client_sync, | |
EGL_EXT_create_context_robustness, EGL_EXT_output_base, | |
EGL_EXT_stream_acquire_mode, EGL_EXT_sync_reuse, EGL_IMG_context_priority, | |
EGL_KHR_config_attribs, EGL_KHR_create_context_no_error, | |
EGL_KHR_context_flush_control, EGL_KHR_create_context, | |
EGL_KHR_display_reference, EGL_KHR_fence_sync, | |
EGL_KHR_get_all_proc_addresses, EGL_KHR_partial_update, |