| 44 | } |
| 45 | |
| 46 | static inline u32 CorrectDimension( u32 dimension ) |
| 47 | { |
| 48 | static const u32 MIN_TEXTURE_DIMENSION = 1; |
| 49 | return Max( GetNextPowerOf2( dimension ), MIN_TEXTURE_DIMENSION ); |
| 50 | } |
| 51 | |
| 52 | CRefPtr<CNativeTexture> CNativeTexture::Create( u32 width, u32 height, ETextureFormat texture_format ) |
| 53 | { |
no test coverage detected