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
| // | |
| // Compile with: | |
| // > cl /I . /D"BUILD_DEBUG=1" /D"BUILD_ARCH64=1" /D"BUILD_WIN=1" /Z7 /W4 /sdl /MT /GR- /EHa /WX /nologo /Oi /Gm- /MP d3d12_textured_quad.c /link /opt:ref /DEBUG "kernel32.lib" "user32.lib" "gdi32.lib" "d3d12.lib" "dxguid.lib" "dxgi.lib" "d3dcompiler.lib" /OUT:d3d12_textured_quad.exe | |
| // | |
| #pragma warning(disable:4221) | |
| #pragma warning(disable:4204) | |
| #pragma warning(disable:4201) | |
| #define NOMINMAX |
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
| // | |
| // Build with: | |
| // > clang coreaudio_backend.m -o main -framework AudioUnit | |
| // | |
| // | |
| // Base Types | |
| // | |
| #include <stdint.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
| // | |
| // Build with: | |
| // > clang -fobjc-arc triangle.m -o triangle -framework Metal -framework AppKit -framework QuartzCore | |
| // | |
| #import <Cocoa/Cocoa.h> | |
| #import <Metal/Metal.h> | |
| #import <QuartzCore/QuartzCore.h> | |
| typedef struct { | |
| float position[2]; |
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
| #pragma comment(lib, "d3d12") | |
| #pragma comment(lib, "dxgi") | |
| #pragma comment(lib, "d3dcompiler") | |
| #pragma comment(lib, "user32") | |
| #include <windows.h> | |
| #include <d3d12.h> | |
| #include <dxgi1_4.h> | |
| #include <d3dcompiler.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
| #pragma warning(disable:4221) | |
| #pragma warning(disable:4204) | |
| #pragma warning(disable:4201) | |
| #pragma comment(lib, "d3d12") | |
| #pragma comment(lib, "dxgi") | |
| #pragma comment(lib, "d3dcompiler") | |
| #pragma comment(lib, "user32") | |
| #pragma comment(lib, "dxguid") | |
| #pragma comment(lib, "gdi32") |
OlderNewer