mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
reworking texture modifiers
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/04 22:10:52 by maldavid #+# #+# */
|
||||
/* Updated: 2023/04/22 19:39:59 by maldavid ### ########.fr */
|
||||
/* Updated: 2023/04/25 15:12:57 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -46,16 +46,6 @@ namespace mlx::core
|
||||
return &_textures.front();
|
||||
}
|
||||
|
||||
char* Application::mapTexture(Texture* img, int* bits_per_pixel, int* size_line, int* endian)
|
||||
{
|
||||
static const int endianness = isSystemBigEndian();
|
||||
|
||||
*bits_per_pixel = 32;
|
||||
*size_line = img->getWidth() * 4;
|
||||
*endian = endianness;
|
||||
return static_cast<char*>(img->openCPUmap());
|
||||
}
|
||||
|
||||
void Application::destroyTexture(void* ptr)
|
||||
{
|
||||
vkDeviceWaitIdle(Render_Core::get().getDevice().get());
|
||||
|
||||
Reference in New Issue
Block a user