KITASENJU DESIGN BLOG

memo, html, javascript, unity

GraphicsFormat/RenderTextureFormatの命名ルールとその性質を調べる

チャンネルの名称

  • RGBA
  • D=デプス
  • S=ステンシル

数字=ビット数

  • 8bit=2の8乗=256階調
  • 16bit=2の16乗=65536階調

数値の名称

  • SNorm=signed normalized=[-1,1]の範囲
  • UNorm: unsigned normalized=[0,1]
  • UInt: The components are unsigned integer values in the range [0, 2n-1]
  • SInt: The components are signed integer values in the range [-2n-1,2n-1-1].
  • UFloat: The components are unsigned floating-point numbers (used by packed, shared exponent, and some compressed formats).
  • SFloat: The components are signed floating-point numbers.

sRGB nonlinear encoding

  • SRGB: The R, G, and B components are unsigned normalized values that represent values using sRGB nonlinear encoding, while the A component (if one exists) is a regular unsigned normalized value.
  • PACKnn: The format is packed into an underlying type with nn bits.

容量

  • チャンネル数xビット数できまる
  • signed/unsignedなどは関係ない

説明

  • ARGB32 = 8bit x 4channel = 32
  • ARGBHalf = それぞれ16bitの不動小数点、floatの半分?
  • ARGBFloat = それぞれ32bit
"FOOTER"