From c13650e2a28314bb84d48d6b66efa19c14814f5e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 30 Apr 2019 09:20:43 -0700 Subject: Updated TextureLoadInfo ctor --- TextureLoader/interface/TextureLoader.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'TextureLoader/interface') diff --git a/TextureLoader/interface/TextureLoader.h b/TextureLoader/interface/TextureLoader.h index 4de89fb..499e741 100644 --- a/TextureLoader/interface/TextureLoader.h +++ b/TextureLoader/interface/TextureLoader.h @@ -57,16 +57,25 @@ namespace Diligent /// Texture format TEXTURE_FORMAT Format; - TextureLoadInfo() : - Name(""), - Usage( USAGE_STATIC ), - BindFlags( BIND_SHADER_RESOURCE ), - MipLevels(0), - CPUAccessFlags(CPU_ACCESS_NONE), - IsSRGB(false), - GenerateMips(true), - Format(TEX_FORMAT_UNKNOWN) + explicit TextureLoadInfo(const Char* _Name, + USAGE _Usage = USAGE_STATIC, + BIND_FLAGS _BindFlags = BIND_SHADER_RESOURCE, + Uint32 _MipLevels = 0, + CPU_ACCESS_FLAGS _CPUAccessFlags = CPU_ACCESS_NONE, + Bool _IsSRGB = False, + Bool _GenerateMips = True, + TEXTURE_FORMAT _Format = TEX_FORMAT_UNKNOWN) : + Name (_Name), + Usage (_Usage), + BindFlags (_BindFlags), + MipLevels (_MipLevels), + CPUAccessFlags (_CPUAccessFlags), + IsSRGB (_IsSRGB), + GenerateMips (_GenerateMips), + Format (_Format) {} + + TextureLoadInfo(){}; }; /// Creates a texture from 2D image -- cgit v1.2.3