Commit graph

50 commits

Author SHA1 Message Date
chyyran
6cdd9247de presets: trim aliases and shader parameter names 2024-09-16 19:21:18 -04:00
chyyran
40a56bf165 reflect/preprocess/presets: use SmallString where it makes sense
Most use cases are internal so at least for the runtime consumers there's no API change, but preset parsing
and reflection items are public API so might as well put this as part of 0.4.0
2024-09-06 22:45:07 -04:00
chyyran
db3d5d05a6 presets: use crate for extract_if with fully qualified syntax to avoid name collision with unstable std 2024-08-20 23:13:39 -04:00
chyyran
bffad12ea2 doc(presets): add docstring for ContextItem::key 2024-08-19 18:33:30 -04:00
chyyran
ac66b1b6f6 style: fix warnings 2024-08-09 00:56:44 -04:00
chyyran
6fbc4b3075 fmt: cargo fmt 2024-02-14 20:50:17 -05:00
chyyran
b348e8591f lib: use a faster hashmap implementation 2024-02-14 20:50:17 -05:00
chyyran
252f685967 reflect: abstract away output compiler into its own trait 2024-02-11 15:48:01 -05:00
chyyran
fa8ee5d143 build: fix cbindgen not finding ctypes
* removes capi internal interface from librashader crate
* adds missing noop impls in header
* fix build on rustc < 1.74
2024-02-09 18:02:30 -05:00
chyyran
8f89b3e720 doc(preset): document preset contexts 2024-02-09 03:07:23 -05:00
chyyran
2fbc7f92da capi: add preset_ctx C API 2024-02-09 02:49:31 -05:00
chyyran
4da6c98655 rt: add driver context + path context for FilterChain::load_with_path 2024-02-09 02:02:13 -05:00
chyyran
a14b36e05b presets: initial preset contexts API 2024-02-09 02:02:13 -05:00
chyyran
f1524f6049 preset: initial work on context 2024-02-09 02:02:13 -05:00
chyyran
2450217c29 fmt: cargo fmt 2024-02-06 19:04:28 -05:00
chyyran
a6c91a07df build: use stable polyfills for extract_if and array_chunks_mut 2024-02-03 22:06:55 -05:00
chyyran
d700234c3c presets: polyfill extract_if 2024-02-03 22:06:55 -05:00
chyyran
3735659604 preset: drain_filter -> extract_if 2023-07-20 02:40:13 -04:00
chyyran
020fac87ba deps: upgrade to windows 0.48.0 2023-04-23 01:44:28 -04:00
chyyran
70aa4091e0 build: fix nightly flag 2023-04-23 00:13:39 -04:00
chyyran
3e144bbdff presets: allow unbalanced quotes 2023-02-24 02:11:52 -05:00
chyyran
604edfb78f cache: implement transparent shader object cache
supported objects:

- SPIR-V artifacts
- Validated DXIL artifacts
- DXBC artifacts
- OpenGL Program Binaries
- Vulkan Pipeline caches
- D3D12 CACHED_PIPELINE_STATE
2023-02-15 18:08:47 -05:00
chyyran
e2e6357cfb presets: parse depth first to allow for proper override behaviour 2023-02-14 02:48:42 -05:00
chyyran
b1a6952020 presets: allow presets to end with a comment 2023-02-14 00:59:43 -05:00
chyyran
48a1b28665 presets: greatly improve path resolution logic and parsing of invalid constructs 2023-02-08 03:06:25 -05:00
chyyran
b81b2b1d25 fmt: run clippy 2023-02-05 18:34:30 -05:00
chyyran
4e51704e35 reflect: abstract away preset compilation 2023-01-18 20:56:08 -05:00
chyyran
1665770615 rt: move image into runtime 2022-12-01 17:11:42 -05:00
chyyran
873814b03b d3d11: cleanup error and api 2022-11-30 19:05:12 -05:00
chyyran
2081e00956 gl: don't keep entire shaderpreset for final filter chain object 2022-11-28 01:16:09 -05:00
chyyran
1579516d25 fmt: clean up unused items 2022-11-21 16:21:50 -05:00
chyyran
80fa30e54e preprocess: move ShaderSource to preprocess and rename common def libs 2022-11-21 16:13:37 -05:00
chyyran
10eb2c3106 gl: implement passfeedback and original history 2022-11-21 02:13:10 -05:00
chyyran
23b13ef047 gl: clean up filter_chain a little bit 2022-11-20 01:09:05 -05:00
chyyran
eb582e396e gl: make framecount usize 2022-11-20 00:05:50 -05:00
chyyran
848d87021c gl: start work on frame history 2022-11-14 00:14:05 -05:00
chyyran
dcbdb382e1 presets: allow comments on the same line as a declaration 2022-11-13 01:57:22 -05:00
chyyran
f0ad7ea3c8 chore: run fmt 2022-10-23 00:59:18 -04:00
chyyran
de161373a9 api: do some renaming of structs 2022-10-21 21:04:00 -04:00
chyyran
731c27a4be repo: move slang-shaders to root/test 2022-10-21 00:09:38 -04:00
chyyran
cc295133c0 preset: fix wrong scale type when x/y scale specified 2022-10-20 23:23:20 -04:00
chyyran
1c18faa83e preset: consider scale when parsing xy scale 2022-10-20 23:11:23 -04:00
chyyran
8606c55a92 chore: run clippy and fmt 2022-10-20 23:05:56 -04:00
chyyran
a43cd9f3d5 preset: implement missing scale_type_x/y 2022-10-20 23:04:29 -04:00
chyyran
6b8449b4da preset: parse to config structs 2022-10-20 22:52:34 -04:00
chyyran
806e1ae2ee preset: parse feedbackpass value 2022-10-20 02:37:56 -04:00
chyyran
88080fe059 preset: fix multiline comments 2022-10-20 02:37:43 -04:00
chyyran
2cb41d16b2 preset: handle parsing scale 2022-10-20 02:26:21 -04:00
chyyran
1c2a83df09 preset: implement texture and parameter parsing 2022-10-20 01:59:15 -04:00
chyyran
c5b0ce211c presets: implement path resolution logic 2022-10-19 22:47:43 -04:00