Commit Graph

23 Commits

Author SHA1 Message Date
dcvz
5c5df60dce Merge branch 'main' into feature/metal
# Conflicts:
#	.gitmodules
#	examples/rt64_render_interface.cpp
#	src/d3d12/rt64_d3d12.cpp
#	src/render/rt64_raster_shader.cpp
#	src/render/rt64_shader_library.cpp
2024-08-07 17:18:53 +02:00
Darío
0fd6d05b8a
HD Textures (#34)
* Add support for HD Texture replacements.
2024-07-25 22:30:39 -03:00
Wiseguy
7f14741da2
Use correct warning flags under clang-cl and fix new warnings (#61) 2024-07-21 18:03:04 -03:00
Darío
56316549da
Use DXIL Linker to reduce compilation time of specializations significantly. (#55)
* Use DXIL Linker to reduce shader optimization time.

* Use string view on render params text.
2024-07-12 00:15:21 -03:00
Anghelo Carvajal
ed7511300c
Fix most warnings (#35)
* Turn on warnings

* -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function

* Fix -Wformat

```
warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat]
```

* Fix -Wrange-loop-construct warning

```
warning: loop variable 'it' creates a copy from type 'std::pair<const std::basic_string<char>, RT64::PresetLights::Light> const' [-Wrange-loop-construct]
```

* -Wsign-compare

```
comparison of integers of different signs: 'int32_t' (aka 'int') and 'uint32_t' (aka 'unsigned int')
```

* -Wrange-loop-construct

```
warning: loop variable ‘it’ creates a copy from type ‘const std::pair<const std::__cxx11::basic_string<char>, RT64::PresetDrawCall>’
```

* rerun

* Fix -Wparentheses

```
warning: suggest parentheses around arithmetic in operand of ‘^’
```

* -Wsign-compare

```
warning: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘unsigned int’
```

* Update hlslpp to fix a number of warnings

* Remove `#pragma once` in cpp file

```
warning: #pragma once in main file
```

* -Wswitch

```
warning: enumeration value ‘None’ not handled in switch
```

* -Wformat-security

```
warning: format not a string literal and no format arguments
```

* regen

* Move warnings to clang check

* Fix -Wdelete-non-abstract-non-virtual-dtor

```
warning: destructor called on non-final 'RT64::PresetMaterial' that has virtual functions but non-virtual destructor
```

* remove warnings file

* Fix one unused parameter

* Fix assert wrapping

* Add -Werror flag

* Change type of `dstIndex` to `uint32_t`

* More uses I missed

* Fix new warnings
2024-06-20 18:57:24 -03:00
dcvz
ef64193213 Merge branch 'main' into feature/metal
# Conflicts:
#	src/d3d12/rt64_d3d12.cpp
#	src/render/rt64_raster_shader.cpp
#	src/rhi/rt64_render_interface_types.h
#	src/vulkan/rt64_vulkan.cpp
2024-05-26 18:31:15 +02:00
Darío
64b9e166f7
Add dither noise approximation using post-blending draws. (#33) 2024-05-24 19:50:45 -03:00
Anghelo Carvajal
ca26fb8096
Link against Xrandr on Linux (#20)
* Add `Xrandr` to `target_link_libraries`

* Use the fancy cmake stuff
2024-05-19 12:56:46 -03:00
David Chavez
7e9e8a6698
Add macos CI flow (#15) 2024-05-16 13:50:54 +02:00
dcvz
8ebbbc61bc Fix shader cpp files 2024-05-16 01:11:33 +02:00
dcvz
43bff0aff8 Fix Linux & Windows 2024-05-16 00:24:23 +02:00
dcvz
ae8c556c20 Remove GS shaders 2024-05-16 00:19:55 +02:00
David Chavez
21cfeae50c
Standalone Graphics Test (#4)
* Add graphics test [WIP]

* Ignore IDEA files

* Explicit cast from size_t to uint64_t

* Build statically when buiding examples

* Remove unused file

* Runs on ARM64 Linux

* Update .gitignore
2024-05-14 21:35:45 -03:00
dcvz
152096cd45 remove shaderconverter and start processing spec cons shaders 2024-05-15 00:41:47 +02:00
dcvz
17c8e1504b Add variant that uses spirv-cross and give size to texture arrays 2024-05-14 23:12:35 +02:00
dcvz
ebd15c0109 Add version that uses metal-shaderconverter
requires metal-shaderconverter to be on your machine
2024-05-14 10:35:55 +02:00
dcvz
3389df5004 More placeholders in header 2024-05-14 00:32:22 +02:00
dcvz
45c6b74642 Beginnings of metal 2024-05-14 00:32:22 +02:00
David Chavez
d0053f25ab Runs on ARM64 Linux 2024-05-14 00:23:23 +02:00
dcvz
5f80997e5c Build statically when buiding examples 2024-05-14 00:23:23 +02:00
dcvz
e82a91889d Add graphics test [WIP] 2024-05-14 00:23:23 +02:00
Darío
404f38c806
Linux changes (#3)
* WIP changes for linux

* Missing include.

* Thread names, file dialog, refresh rate detection changes.

---------

Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
2024-04-22 20:11:59 -03:00
Darío
cbab135a31 Initial commit. 2024-04-14 16:43:05 -03:00