mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Add half precision floating point support to StreamPeer
Closes godotengine/godot-proposals#5983 Adds put/get methods to `StreamPeer` that handles half precision floating point values. Adds endode/decode half precision floating point to `marshalls`. Adds `get_half` and `store_half` to `FileAccess` Co-Authored-By: "Alfonso J. Ramos" <theraot@gmail.com>
This commit is contained in:
committed by
Pablo Andres Fuente
parent
ec6a1c0e79
commit
eb86670f94
1
tests/data/floating_point_big_endian.bin
Normal file
1
tests/data/floating_point_big_endian.bin
Normal file
@@ -0,0 +1 @@
|
||||
@IV
|
||||
1
tests/data/floating_point_little_endian.bin
Normal file
1
tests/data/floating_point_little_endian.bin
Normal file
@@ -0,0 +1 @@
|
||||
VI@
|
||||
1
tests/data/half_precision_floating_point_big_endian.bin
Normal file
1
tests/data/half_precision_floating_point_big_endian.bin
Normal file
@@ -0,0 +1 @@
|
||||
5U
|
||||
@@ -0,0 +1 @@
|
||||
U5
|
||||
Reference in New Issue
Block a user