2525#include < utils/BitmaskEnum.h>
2626#include < utils/Panic.h>
2727#include < utils/debug.h>
28- #include < utils/ostream.h>
2928
3029#include < webgpu/webgpu_cpp.h>
3130#if FWGPU_ENABLED(FWGPU_PRINT_SYSTEM)
@@ -343,8 +342,7 @@ WebGPUTexture::WebGPUTexture(const SamplerType samplerType, const uint8_t levels
343342 std::stringstream textureFormatStream;
344343 textureFormatStream << mWebGPUFormat ;
345344 FWGPU_LOGD << " Texture '" << textureDescriptor.label << " ' has view format "
346- << viewFormatStream.str () << " and texture format " << textureFormatStream.str ()
347- << utils::io::endl;
345+ << viewFormatStream.str () << " and texture format " << textureFormatStream.str ();
348346 }
349347#endif
350348}
@@ -470,90 +468,76 @@ wgpu::TextureFormat WebGPUTexture::fToWGPUTextureFormat(TextureFormat const& fFo
470468 // No direct mapping in wgpu. Could potentially map to RGBA8Unorm
471469 // and discard the alpha and lower precision.
472470 FWGPU_LOGW << " Requested Filament texture format RGB565 but getting "
473- " wgpu::TextureFormat::Undefined (no direct mapping in wgpu)"
474- << utils::io::endl;
471+ " wgpu::TextureFormat::Undefined (no direct mapping in wgpu)" ;
475472 return wgpu::TextureFormat::Undefined;
476473 case TextureFormat::RGB9_E5: return wgpu::TextureFormat::RGB9E5Ufloat;
477474 case TextureFormat::RGB5_A1:
478475 // No direct mapping in wgpu. Could potentially map to RGBA8Unorm
479476 // and handle the packing/unpacking in shaders.
480477 FWGPU_LOGW << " Requested Filament texture format RGB5_A1 but getting "
481- " wgpu::TextureFormat::Undefined (no direct mapping in wgpu)"
482- << utils::io::endl;
478+ " wgpu::TextureFormat::Undefined (no direct mapping in wgpu)" ;
483479 return wgpu::TextureFormat::Undefined;
484480 case TextureFormat::RGBA4:
485481 // No direct mapping in wgpu. Could potentially map to RGBA8Unorm
486482 // and handle the packing/unpacking in shaders.
487483 FWGPU_LOGW << " Requested Filament texture format RGBA4 but getting "
488- " wgpu::TextureFormat::Undefined (no direct mapping in wgpu)"
489- << utils::io::endl;
484+ " wgpu::TextureFormat::Undefined (no direct mapping in wgpu)" ;
490485 return wgpu::TextureFormat::Undefined;
491486 case TextureFormat::RGB8:
492487 FWGPU_LOGW << " Requested Filament texture format RGB8 but getting "
493488 " wgpu::TextureFormat::RGBA8Unorm (no direct sRGB equivalent in wgpu "
494- " without alpha)"
495- << utils::io::endl;
489+ " without alpha)" ;
496490 return wgpu::TextureFormat::RGBA8Unorm;
497491 case TextureFormat::SRGB8:
498492 FWGPU_LOGW << " Requested Filament texture format SRGB8 but getting "
499493 " wgpu::TextureFormat::RGBA8UnormSrgb (no direct sRGB equivalent in wgpu "
500- " without alpha)"
501- << utils::io::endl;
494+ " without alpha)" ;
502495 return wgpu::TextureFormat::RGBA8UnormSrgb;
503496 case TextureFormat::RGB8_SNORM:
504497 FWGPU_LOGW
505498 << " Requested Filament texture format RGB8_SNORM but getting "
506- " wgpu::TextureFormat::RGBA8Snorm (no direct mapping in wgpu without alpha)"
507- << utils::io::endl;
499+ " wgpu::TextureFormat::RGBA8Snorm (no direct mapping in wgpu without alpha)" ;
508500 return wgpu::TextureFormat::RGBA8Snorm;
509501 case TextureFormat::RGB8UI:
510502 FWGPU_LOGW << " Requested Filament texture format RGB8UI but getting "
511- " wgpu::TextureFormat::RGBA8Uint (no direct mapping in wgpu without alpha)"
512- << utils::io::endl;
503+ " wgpu::TextureFormat::RGBA8Uint (no direct mapping in wgpu without alpha)" ;
513504 return wgpu::TextureFormat::RGBA8Uint;
514505 case TextureFormat::RGB8I:
515506 FWGPU_LOGW << " Requested Filament texture format RGB8I but getting "
516- " wgpu::TextureFormat::RGBA8Sint (no direct mapping in wgpu without alpha)"
517- << utils::io::endl;
507+ " wgpu::TextureFormat::RGBA8Sint (no direct mapping in wgpu without alpha)" ;
518508 return wgpu::TextureFormat::RGBA8Sint;
519509 case TextureFormat::R11F_G11F_B10F: return wgpu::TextureFormat::RG11B10Ufloat;
520510 case TextureFormat::UNUSED: return wgpu::TextureFormat::Undefined;
521511 case TextureFormat::RGB10_A2: return wgpu::TextureFormat::RGB10A2Unorm;
522512 case TextureFormat::RGB16F:
523513 FWGPU_LOGW
524514 << " Requested Filament texture format RGB16F but getting "
525- " wgpu::TextureFormat::RGBA16Float (no direct mapping in wgpu without alpha)"
526- << utils::io::endl;
515+ " wgpu::TextureFormat::RGBA16Float (no direct mapping in wgpu without alpha)" ;
527516 return wgpu::TextureFormat::RGBA16Float;
528517 case TextureFormat::RGB16UI:
529518 FWGPU_LOGW
530519 << " Requested Filament texture format RGB16UI but getting "
531- " wgpu::TextureFormat::RGBA16Uint (no direct mapping in wgpu without alpha)"
532- << utils::io::endl;
520+ " wgpu::TextureFormat::RGBA16Uint (no direct mapping in wgpu without alpha)" ;
533521 return wgpu::TextureFormat::RGBA16Uint;
534522 case TextureFormat::RGB16I:
535523 FWGPU_LOGW
536524 << " Requested Filament texture format RGB16I but getting "
537- " wgpu::TextureFormat::RGBA16Sint (no direct mapping in wgpu without alpha)"
538- << utils::io::endl;
525+ " wgpu::TextureFormat::RGBA16Sint (no direct mapping in wgpu without alpha)" ;
539526 return wgpu::TextureFormat::RGBA16Sint;
540527 case TextureFormat::RGB32F:
541528 FWGPU_LOGW
542529 << " Requested Filament texture format RGB32F but getting "
543- " wgpu::TextureFormat::RGBA32Float (no direct mapping in wgpu without alpha)"
544- << utils::io::endl;
530+ " wgpu::TextureFormat::RGBA32Float (no direct mapping in wgpu without alpha)" ;
545531 return wgpu::TextureFormat::RGBA32Float;
546532 case TextureFormat::RGB32UI:
547533 FWGPU_LOGW
548534 << " Requested Filament texture format RGB32UI but getting "
549- " wgpu::TextureFormat::RGBA32Uint (no direct mapping in wgpu without alpha)"
550- << utils::io::endl;
535+ " wgpu::TextureFormat::RGBA32Uint (no direct mapping in wgpu without alpha)" ;
551536 return wgpu::TextureFormat::RGBA32Uint;
552537 case TextureFormat::RGB32I:
553538 FWGPU_LOGW
554539 << " Requested Filament texture format RGB32I but getting "
555- " wgpu::TextureFormat::RGBA32Sint (no direct mapping in wgpu without alpha)"
556- << utils::io::endl;
540+ " wgpu::TextureFormat::RGBA32Sint (no direct mapping in wgpu without alpha)" ;
557541 return wgpu::TextureFormat::RGBA32Sint;
558542 case TextureFormat::DXT1_RGB: return wgpu::TextureFormat::BC1RGBAUnorm;
559543 case TextureFormat::DXT1_RGBA: return wgpu::TextureFormat::BC1RGBAUnorm;
@@ -573,7 +557,7 @@ wgpu::TextureView WebGPUTexture::makeTextureView(const uint8_t& baseLevel,
573557 if (baseLevel > 0 && !mSupportsMultipleMipLevels ) {
574558 FWGPU_LOGW << " Trying to make a texture view into a level ("
575559 << static_cast <uint32_t >(baseLevel)
576- << " ) for which we cannot generate mip levels." << utils::io::endl ;
560+ << " ) for which we cannot generate mip levels." ;
577561 }
578562#endif
579563 const wgpu::TextureViewDescriptor textureViewDescriptor{
0 commit comments