bjorn
fe524452f3
Merge branch 'master' into dev
2023-03-09 18:37:25 -08:00
bjorn
b33cc99374
Fix potential crash when creating textures;
...
beginFrame needs to be called a little bit earlier (before getting the
buffer to write the texture contents).
2023-03-09 18:36:23 -08:00
bjorn
2ad2fd6d90
OpenXR: Improve error messages;
...
- Error messages say what went wrong instead of file/line
- Instead of silently failing during startup, log a warning
2023-03-07 20:16:59 -08:00
Bjorn
cf235588dd
Merge pull request #649 from mcclure/cpp-noreturn
...
Make 0.16 util.h compile correctly when included from a C++ file
2023-03-05 19:12:31 -08:00
mcc
c3b63e60ba
Create LOVR_NORETURN abstracting the contradictory noreturn implementations in C11 and C++11
2023-03-05 19:16:59 -05:00
Bjorn
d8e856e6e0
Merge pull request #645 from mcclure/size-t-narrow
...
Address various MSVC warnings (casts, comparisons, function pointers)
2023-03-03 17:25:48 -08:00
Bjorn
5fa53b3812
Update error message;
2023-03-03 17:17:49 -08:00
mcc
e4e8c5476b
Warning fixes (fix style)
2023-03-03 15:48:41 -05:00
bjorn
aba5f328fe
Throttle when OpenXR session is idle;
2023-03-02 19:33:35 -08:00
bjorn
6de1c624b4
Scope shader macros by the stage they're valid in;
...
Leads to better error messages if you try to use e.g. DefaultPosition in
a fragment shader.
2023-03-02 19:03:15 -08:00
bjorn
ccffd3c1b2
Merge branch 'master' into dev
2023-03-02 18:31:20 -08:00
bjorn
6d382c2f0c
Ensure blank images are cleared to zero;
...
This was an unintended change in v0.16.0.
2023-03-02 18:31:06 -08:00
mcc
52a7a51b8e
Silence spurious function-pointer mismatch warning
2023-03-01 19:14:22 -05:00
mcc
d00d908520
Silence signed/unsigned warning on rounded rectangle loop
2023-03-01 19:13:15 -05:00
mcc
a5216347a0
Address size_t narrowing warnings in MSVC by adding casts. Add some asserts to make sure the casts are safe.
2023-03-01 18:15:04 -05:00
bjorn
4afb0ae2bf
Fix Pass:clear(buffer);
2023-02-25 00:01:31 -08:00
bjorn
886db5f91d
Stop using isdigit in obj importer;
2023-02-25 00:00:04 -08:00
bjorn
0103259938
Fix CMake build;
2023-02-24 21:05:31 -08:00
bjorn
abbc6a6dc6
Merge branch 'master' into dev
2023-02-21 21:12:33 -08:00
bjorn
04c4dee851
rm -Os from glslangValidator flags;
...
It's not necessary
2023-02-21 21:11:29 -08:00
bjorn
af4f1c1dea
Fix compilation with glslang disabled;
2023-02-07 22:48:50 -08:00
bjorn
41dd24edc4
Organize math module files;
2023-02-07 21:44:43 -08:00
bjorn
1bc7af2a31
tup: fully support renaming android package;
2023-02-05 22:02:04 -08:00
Bjorn
d1eaa43997
Merge pull request #641 from brainrom/pkgrename
...
Android package rename via CMake
2023-02-05 21:57:25 -08:00
Bjorn
49489dc0e8
Apply suggestions from code review
2023-02-05 21:47:52 -08:00
bjorn
89edccbf4c
Add lovr.headset.isPassthroughEnabled and lovr.headset.setPassthroughEnabled;
2023-02-05 19:51:12 -08:00
bjorn
5a27a0f819
Update OpenXR to 1.0.26;
2023-02-05 18:12:43 -08:00
bjorn
e4eb336bd6
Prevent creation of unrenderable texture views;
...
There were certain cases where an unrenderable texture view could be
created from a renderable parent texture (e.g. it has multiple mipmap
levels). This would leave renderView as NULL, which would cause a
crash.
2023-02-05 17:34:24 -08:00
bjorn
e076a582ce
3D depth textures can not have the 'render' flag;
...
Vulkan said so!!
2023-02-05 17:18:45 -08:00
bjorn
a160def4e3
rm unreachable mipmap assert;
...
It's clamped earlier.
2023-02-05 17:15:15 -08:00
bjorn
7027defe3c
rm attachmentCount shader flag;
...
It doesn't work as intended (due to glslang issues?). The current way
to write a shader that uses multiple attachments is to declare multiple
output variables, which is a little better because you can name them
however you want and customize the type.
It would be nice to be able to support a "void" entrypoint for multiple
attachments so you don't need to awkwardly return the first target's
color, but I can't find a way around this right now.
2023-02-05 16:04:17 -08:00
bjorn
b76d9bbfe5
Ensure mipmap count is consistently 1 for render targets;
...
Currently if you create a texture from dimensions (assumed to be a
render target), its mipmap count differs depending on whether you
provide an options table. Now it will consistently be 1.
2023-02-05 16:02:58 -08:00
bjorn
495fca5f23
Add a variant of Texture:newView for single slices/mipmaps;
...
This is a more convenient syntax for the common case of creating a 2D
view of a single slice/level of an array/cubemap/3D texture.
2023-02-05 15:15:11 -08:00
bjorn
06c150ce4e
Pass:setBlendMode/Pass:setColorWrite take optional target index;
...
If the target index is missing, the state will apply to all targets.
Fixes undefined behavior when setting color state in a pass with
multiple color attachments.
2023-02-05 15:07:33 -08:00
bjorn
b0c3bd6e4c
Lightuserdata can be pushed to channels;
2023-02-04 14:08:22 -08:00
bjorn
8337dd9caf
Vectors work with channels;
...
They are copied by value. Upon popping, they are pushed as temporary
vectors. Matrices are allocated on the heap, everything else is stored
in the Variant itself.
2023-02-04 14:03:12 -08:00
bjorn
2144b5f81d
Backport Lua utf8 library;
2023-02-03 23:17:43 -08:00
bjorn
fbc591802a
Details;
2023-02-01 19:26:18 -08:00
bjorn
66cb43a665
Support elbow poses from hand tracking;
...
Via XR_ULTRALEAP_hand_tracking_forearm
2023-02-01 18:36:05 -08:00
bjorn
bf98c066b4
t.math.globals also adds capitalized constructors;
2023-02-01 17:57:37 -08:00
bjorn
b9186487d1
Update LuaJIT;
2023-01-31 18:21:46 -08:00
bjorn
b8b40bac40
Update stb_image to 2.28;
2023-01-31 18:20:26 -08:00
bjorn
39dfce8e8a
Merge branch 'master' into dev
2023-01-31 18:02:11 -08:00
bjorn
bf31072d0d
Cleanup;
2023-01-30 19:44:23 -08:00
Bjorn
bd03180d44
Merge pull request #605 from brainrom/picofix
...
Pico android flavor
2023-01-30 19:37:42 -08:00
Ilya
bf08d47a5a
Merge branch 'bjornbytes:master' into picofix
2023-01-31 06:06:26 +03:00
Ilya Chelyadin
d84d358de7
Minor fixes
2023-01-31 06:03:53 +03:00
bjorn
dfdda04fc7
Add Pico OpenXR SDK submodule;
2023-01-30 18:04:57 -08:00
kokokoshka
85b6e36020
Android package rename via CMake
2023-01-30 20:35:49 +03:00
Ilya Chelyadin
ca09c89d03
Updated Pico loader path to SDK v2.1.0, fixed C++ shared library path
2023-01-29 23:45:23 +03:00