refactoring
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include "c_api/TTexture.h"
|
||||
|
||||
#include <filament/Engine.h>
|
||||
#include <filament/Material.h>
|
||||
#include <filament/RenderTarget.h>
|
||||
@@ -15,6 +14,8 @@
|
||||
#include <filament/imageio/ImageDecoder.h>
|
||||
#include <filament/backend/DriverEnums.h>
|
||||
|
||||
#include "c_api/TTexture.h"
|
||||
|
||||
#include "Log.hpp"
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -227,7 +228,7 @@ namespace thermion
|
||||
auto *engine = reinterpret_cast<::filament::Engine *>(tEngine);
|
||||
auto format = convertToFilamentFormat(tFormat);
|
||||
auto samplerType = static_cast<::filament::Texture::Sampler>(static_cast<int>(tSamplerType));
|
||||
auto usage = static_cast<::filament::Texture::Usage>(tUsage);
|
||||
auto usage = static_cast<TextureUsage>(tUsage);
|
||||
|
||||
if ((usage & TextureUsage::UPLOADABLE) == TextureUsage::UPLOADABLE) {
|
||||
TRACE("UPLOADABLE");
|
||||
|
||||
Reference in New Issue
Block a user