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
// A simple port of polymur-hash into JAI. | |
/* | |
PolymurHash version 2.0 | |
Copyright (c) 2023 Orson Peters | |
This software is provided 'as-is', without any express or implied warranty. In | |
no event will the authors be held liable for any damages arising from the use of | |
this software. |
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
/* | |
Port of [OffsetAllocator](https://github.com/sebbbi/OffsetAllocator) by (C) Sebastian Aaltonen 2023 | |
MIT License | |
Copyright (c) 2023 Sebastian Aaltonen | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
#import "Basic"; | |
#import "Windows"; | |
#import "Windows_Utf8"; | |
#import "File"; | |
#import "File_Utilities"; | |
#import "String"; | |
main :: () { | |
argc : s32; | |
argv := CommandLineToArgvW(GetCommandLineW(), *argc); |
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
package hot_reload | |
when ODIN_DEBUG==true { | |
import "core:path/filepath" | |
import "core:os" | |
import "core:sync" | |
import "core:time" | |
import "core:strings" | |
import "core:thread" | |
} | |
import "core:fmt" |
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
package dxc | |
import d3d12 "vendor:directx/d3d12" | |
SHADER_VERSION_TYPE :: enum u32 { | |
PIXEL_SHADER = 0, | |
VERTEX_SHADER = 1, | |
GEOMETRY_SHADER = 2, | |
HULL_SHADER = 3, | |
DOMAIN_SHADER = 4, | |
COMPUTE_SHADER = 5, |
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
// reference: https://gist.github.com/msmshazan/dfd5362004be37ff5e016b6a42be5083 | |
package d3d11_triangle | |
import "core:strings" | |
import "core:runtime" | |
import "core:fmt" | |
import "core:sys/windows" | |
import d3d11 "vendor:directx/d3d11" | |
import dxgi "vendor:directx/dxgi" | |
import d3dc "vendor:directx/d3d_compiler" |
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
-- default script for clink, called by init.bat when injecting clink | |
-- !!! THIS FILE IS OVERWRITTEN WHEN CMDER IS UPDATED | |
-- !!! Use "%CMDER_ROOT%\config\<whatever>.lua" to add your lua startup scripts | |
-- At first, load the original clink.lua file | |
-- this is needed as we set the script path to this dir and therefore the original | |
-- clink.lua is not loaded. | |
local clink_lua_file = clink.get_env('CMDER_ROOT')..'\\vendor\\clink\\clink.lua' |