mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/dxil: Read the type table.
This commit is contained in:
committed by
Alexandre Julliard
parent
41a5d37935
commit
571d807dd8
Notes:
Alexandre Julliard
2023-07-11 23:13:49 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/259
@@ -173,6 +173,11 @@ static inline bool vkd3d_bound_range(size_t start, size_t count, size_t limit)
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline bool vkd3d_object_range_overflow(size_t start, size_t count, size_t size)
|
||||
{
|
||||
return (~(size_t)0 - start) / size < count;
|
||||
}
|
||||
|
||||
static inline uint16_t vkd3d_make_u16(uint8_t low, uint8_t high)
|
||||
{
|
||||
return low | ((uint16_t)high << 8);
|
||||
|
Reference in New Issue
Block a user