Skip to content

Commit

Permalink
update bgfx to version 115.
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Feb 7, 2024
1 parent 6264dda commit f1e6e23
Show file tree
Hide file tree
Showing 106 changed files with 109 additions and 108 deletions.
2 changes: 1 addition & 1 deletion Assets/LICENSES
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bgfx: BSD-2 License

Copyright 2010-2017 Branimir Karadzic. All rights reserved.
Copyright 2010-2024 Branimir Karadzic. All rights reserved.

https://github.com/bkaradzic/bgfx
https://github.com/bkaradzic/bx
Expand Down
22 changes: 11 additions & 11 deletions Source/3rdParty/bgfx/Header/bgfx/bgfx.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/

Expand Down Expand Up @@ -1517,8 +1517,8 @@ namespace bgfx
ViewId _id
, ProgramHandle _program
, IndirectBufferHandle _indirectHandle
, uint16_t _start = 0
, uint16_t _num = 1
, uint32_t _start = 0
, uint32_t _num = 1
, uint32_t _depth = 0
, uint8_t _flags = BGFX_DISCARD_ALL
);
Expand All @@ -1544,7 +1544,7 @@ namespace bgfx
ViewId _id
, ProgramHandle _program
, IndirectBufferHandle _indirectHandle
, uint16_t _start
, uint32_t _start
, IndexBufferHandle _numHandle
, uint32_t _numIndex = 0
, uint16_t _numMax = UINT16_MAX
Expand Down Expand Up @@ -1675,8 +1675,8 @@ namespace bgfx
ViewId _id
, ProgramHandle _handle
, IndirectBufferHandle _indirectHandle
, uint16_t _start = 0
, uint16_t _num = 1
, uint32_t _start = 0
, uint32_t _num = 1
, uint8_t _flags = BGFX_DISCARD_ALL
);

Expand Down Expand Up @@ -3994,8 +3994,8 @@ namespace bgfx
ViewId _id
, ProgramHandle _program
, IndirectBufferHandle _indirectHandle
, uint16_t _start = 0
, uint16_t _num = 1
, uint32_t _start = 0
, uint32_t _num = 1
, uint32_t _depth = 0
, uint8_t _flags = BGFX_DISCARD_ALL
);
Expand All @@ -4021,7 +4021,7 @@ namespace bgfx
ViewId _id
, ProgramHandle _program
, IndirectBufferHandle _indirectHandle
, uint16_t _start
, uint32_t _start
, IndexBufferHandle _numHandle
, uint32_t _numIndex = 0
, uint16_t _numMax = UINT16_MAX
Expand Down Expand Up @@ -4152,8 +4152,8 @@ namespace bgfx
ViewId _id
, ProgramHandle _handle
, IndirectBufferHandle _indirectHandle
, uint16_t _start = 0
, uint16_t _num = 1
, uint32_t _start = 0
, uint32_t _num = 1
, uint8_t _flags = BGFX_DISCARD_ALL
);

Expand Down
4 changes: 2 additions & 2 deletions Source/3rdParty/bgfx/Header/bgfx/defines.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/

Expand All @@ -15,7 +15,7 @@
#ifndef BGFX_DEFINES_H_HEADER_GUARD
#define BGFX_DEFINES_H_HEADER_GUARD

#define BGFX_API_VERSION UINT32_C(124)
#define BGFX_API_VERSION UINT32_C(125)

/**
* Color RGB/alpha/depth write. When it's not specified write will be disabled.
Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bgfx/embedded_shader.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bgfx/platform.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/allocator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/bounds.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/

Expand Down
6 changes: 5 additions & 1 deletion Source/3rdParty/bgfx/Header/bx/bx.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down Expand Up @@ -214,6 +214,10 @@ namespace bx
template<typename Ty>
constexpr bool isPowerOf2(Ty _a);

/// Returns a value of type To by reinterpreting the object representation of From.
template <typename To, typename From>
constexpr To bit_cast(const From& value) noexcept;

/// Copy memory block.
///
/// @param _dst Destination pointer.
Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/commandline.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/constants.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/cpu.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/debug.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/easing.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/endian.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/error.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/file.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/filepath.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/float4x4_t.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/handlealloc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/hash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/allocator.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/bounds.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/

Expand Down
12 changes: 11 additions & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/bx.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down Expand Up @@ -147,4 +147,14 @@ namespace bx
return _a && !(_a & (_a - 1) );
}

template <typename To, typename From>
inline constexpr To bit_cast(const From& value) noexcept
{
BX_STATIC_ASSERT(sizeof(To) == sizeof(From), "To and From must be the same size.");
BX_STATIC_ASSERT(isTriviallyConstructible<To>(), "Destination target must be trivially constructible.");
To result;
bx::memCopy(&result, &value, sizeof(To));
return result;
}

} // namespace bx
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/cpu.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/easing.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/endian.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/error.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/float4x4_t.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/handlealloc.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/hash.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/math.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/mpscqueue.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/mutex.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/os.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/pixelformat.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/readerwriter.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/ringbuffer.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/rng.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/simd128_langext.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/simd128_neon.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/simd128_ref.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/bgfx/Header/bx/inline/simd128_sse.inl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2023 Branimir Karadzic. All rights reserved.
* Copyright 2010-2024 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
*/

Expand Down
Loading

0 comments on commit f1e6e23

Please sign in to comment.