Clément Foucault
5d5975a45d
Merge branch 'main' into gpu-texture-api-cleanup
buildbot/vexp-code-patch-coordinator Build done.
Details
2023-02-25 02:11:03 +01:00
Clément Foucault
3fb789d9bf
Cleanup: GPUTexture: Remove _ex suffix from texture creation
...
It isn't relevant anymore now that usage flags are mandatory.
2023-02-25 01:52:27 +01:00
Clément Foucault
7ba96e3feb
GPUTexture: Add texture usage flag to all texture creation
...
All usages are currently placeholder GPU_TEXTURE_USAGE_GENERAL.
2023-02-25 01:49:26 +01:00
Clément Foucault
59a3230337
GPUTexture: Remove data_format from 3D texture creation function
...
For every other texture types this is expected to be implicitly
`GPU_DATA_FLOAT`. There is only one case where this is not the case.
I believe this was previously needed because the data type was
conditionning the texture creation. This is not the case anymore.
2023-02-25 01:19:44 +01:00
Clément Foucault
9f0f6b29cc
GPUTexture: Remove obsolete GPU_texture_bind_ex argument set_number
...
This was previously used when the binding number wasn't always stored
inside the texture itself.
2023-02-25 01:07:28 +01:00
Clément Foucault
71791fde96
Cleanup: GPUTexture: Rename some functions with more descriptive names
...
List of renames:
GPU_texture_generate_mipmap > GPU_texture_update_mipmap_chain
GPU_texture_orig_width > GPU_texture_original_width
GPU_texture_orig_height > GPU_texture_original_height
GPU_texture_orig_size_set > GPU_texture_original_size_set
GPU_texture_format_description > GPU_texture_format_name
GPU_texture_array > GPU_texture_is_array
GPU_texture_cube > GPU_texture_is_cube
GPU_texture_depth > GPU_texture_has_depth_format
GPU_texture_stencil > GPU_texture_has_stencil_format
GPU_texture_integer > GPU_texture_has_integer_format
2023-02-25 01:04:35 +01:00
Clément Foucault
8135f769ad
Cleanup: GPUTexture: Improve function parameters name
2023-02-25 00:53:46 +01:00
Clément Foucault
b6750cad6f
GPUTexture: Add header documentation and reorganize sections
2023-02-25 00:28:19 +01:00