Commit graph

1280 commits

Author SHA1 Message Date
Dale Glass
101592357f Restore KTX version to 2
This fixes compatibility with older baked assets
2025-01-11 18:41:51 -08:00
Dale Glass
1c06c8652c Add serializer size tracker, update documentation 2025-01-11 18:41:51 -08:00
Dale Glass
42d6128d9e Fix KTX issues with the serializer.
* Stop trying to be compatible with the old format, and just bump the version number.
* Add uint64_t support to serializer
* A bit improved debug output from serializer
* Add lastAdvance() function to ask the serializer how much data was added/read in the last operation.
2025-01-11 18:41:51 -08:00
Dale Glass
3b797f5785 Debug code 2025-01-11 18:41:51 -08:00
Dale Glass
201c531edb Split SerDes into DataSerializer and DataDeserializer
Single class wasn't working well because deserialization may
need to be done on const data. With the split, the deserializer
part can work with const data without issues.

Also cleaned things up a bit.
2025-01-11 18:41:51 -08:00
Dale Glass
194eebf57c Finish Texture_ktx conversion to serializer 2025-01-11 18:41:51 -08:00
Dale Glass
23a5795ba9 Initial version 2025-01-11 18:41:50 -08:00
HifiExperiments
65b7329136 support more procedural shader uniform types, including arrays 2024-10-21 17:05:36 -07:00
HifiExperiments
093f8b7cb0 Merge remote-tracking branch 'overte/master' into master_to_protocol_changes4 2024-08-17 12:30:15 -07:00
HifiExperiments
126c325410 master -> primary 2024-08-13 20:50:51 -07:00
HifiExperiments
ee705d285e Merge branch master into protocol_changes 2024-06-18 21:08:21 -07:00
Dale Glass
9cb35541d3 Fix -Wtemplate-id-cdtor
warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
2024-05-04 15:56:06 +02:00
Dale Glass
fe550aa69f Whitespace changes 2024-05-04 15:56:06 +02:00
HifiExperiments
f7c17d6035 new procecural particle entity type 2024-03-21 16:43:09 -07:00
HifiExperiments
f27263cc6a clean up geometrycache and remove _glColor4f 2024-03-01 13:47:36 -08:00
HifiExperiments
5c5480bfc0 respect cull face during shadow pass 2024-02-28 15:23:39 -08:00
Dale Glass
e7591d6794
Revert "Revert "Mirrors + Portals"" 2024-01-13 11:23:36 +01:00
c6e4e5de37
Revert "Mirrors + Portals" 2024-01-13 11:18:08 +01:00
HifiExperiments
5159367b4c fix paramsOffset and view flipping 2023-12-18 15:42:17 -08:00
HifiExperiments
3e0c50e077 wild guess to handle view correction, hide portalExitID in create when mirrorMode != portal 2023-12-04 14:49:35 -08:00
8b973bdfa3 Remove executable permission from a bunch of files 2023-03-14 00:02:33 +01:00
Heather Anderson
bcce9a2091 convert explicit shared pointer creation (using "new") to make_shared where possible/appropriate 2021-09-11 15:15:04 -07:00
HifiExperiments
bdbb88084b CR 2021-07-05 21:02:40 -07:00
HifiExperiments
7f99ddca2e merge with master 2021-07-05 16:48:45 -07:00
HifiExperiments
ab1b69ebe3 fix ktx issue 2021-04-01 23:39:00 -07:00
HifiExperiments
7ff796af3e web textures work on image entities, create supports negative materialMappingScale 2021-03-22 20:52:39 -07:00
HifiExperiments
35e836d34d image caching must maintain original image information and pass it around 2021-03-19 22:32:29 -07:00
HifiExperiments
15ba6c8637 fix build 2021-03-17 21:14:22 -07:00
HifiExperiments
9514ade844 add reference materials and support reference texture changes 2021-03-15 21:21:32 -07:00
HifiExperiments
828e653849 able to reference entity ids as textures 2021-03-13 22:34:48 -08:00
Dale Glass
3284313399 Mark font textures as something that shouldn't be downscaled 2020-10-27 18:24:08 +01:00
Thijs Wenker
aa5413fd71 fix VS2019 (Version 16.5.1) builds 2020-04-07 16:57:05 +02:00
Dale Glass
bb51a000fb Code style fixes 2020-01-17 00:41:16 +01:00
Dale Glass
367c5f39df Finish removal of getRaw() and bit fields 2020-01-16 21:02:58 +01:00
Dale Glass
8f65a90453 Remove getRaw() from DepthTest
State::getKey removed because it breaks and is not referenced from anywhere.
2020-01-14 23:00:08 +01:00
Dale Glass
ea36e7a239 Fix thousands of 'is too small to hold all values' warnings on Linux
When building with GCC, it generates 3020 warnings like this:

libraries/gpu/src/gpu/State.h:208:18: warning: ‘gpu::State::BlendFunction::destColor’
is too small to hold all values of ‘enum gpu::State::BlendArg’

This is because ‘enum gpu::State::BlendArg’ is declared as an enum
of uint16 size, and gpu::State::BlendFunction::destColor is a bit
field.

GCC correctly deduces that a 16 bit value won't always fit in a 4
bit field, and emits a warning.

The problem is that the amount is such that it floods the output and hides
other warnings.

Changing the 'enum foo : uint16' declarations to 'enum foo' stops gcc
from emitting the warning.

Making this change required the removal of a set of assertion checks. At least
empirically they seem unnecessary -- the interface compiles and runs fine.
2020-01-08 00:12:30 +01:00
HifiExperiments
1e100a672e merge with master and try to fix opacity mode stuff 2019-10-23 22:21:45 -07:00
Brad Davis
d69a83a2f2 fix warnings 2019-10-04 18:20:10 -07:00
Brad Davis
243120b95c Even better frame capture 2019-10-04 14:57:39 -07:00
Brad Davis
cc1be64850 Fixing build issues 2019-10-04 09:20:02 -07:00
Brad Davis
3c6e98f16b New format for captured GPU frames 2019-10-04 08:34:06 -07:00
HifiExperiments
97b9179144 merge with master 2019-09-05 00:46:56 -07:00
Sam Gateau
4a93b23d83 Address the procedural to populate all reflection versions with user uniforms bindings and make EnigneInspector works correctly 2019-08-13 18:47:57 -07:00
Sam Gateau
224e9590ec avoid using explicit dialects when we want just a default one 2019-08-13 15:45:24 -07:00
Sam Gateau
0b470b9ab8 Fixing the bad location assignment on gl41 on windows with Austin's help 2019-08-13 00:22:17 -07:00
Brad Davis
449f3d00f9 BUGZ-987: fix depth testing of HUD layer 3D objects 2019-07-23 12:09:12 -07:00
SamGondelman
60600779c9 merge with master 2019-07-12 11:01:17 -07:00
Seth Alves
9baf4c7078 comfort mode -- squeeze vision to avoid sickness 2019-07-12 09:14:17 -07:00
Anna
95f2dfa551 added horizontal flip back to mirror mode 2019-07-01 15:31:26 -07:00
Anna
787359fdfb fixed ui flipping issue 2019-07-01 10:52:03 -07:00