OROCHI
 
Loading...
Searching...
No Matches
GxRenderTexture Class Reference

テクスチャクラス More...

#include <GxRenderTexture.h>

Inheritance diagram for GxRenderTexture:
Collaboration diagram for GxRenderTexture:

Classes

struct  GxMappingInformation
 マッピング情報 More...
 
struct  GxTextureSize
 テクスチャサイズ構造体 More...
 

Friends

定義
class GxRenderDevice
 
- Friends inherited from GxRenderNotifier

初期化

void cleanup (void) override
 delete直前に呼び出される関数
 
virtual b32 initialize2D (const GxSize &resolution, u32 mipLevel, RENDER_FORMAT format, u32 attribute)
 初期化関数(2D)
 
virtual b32 initialize3D (const GxSize &resolution, u32 depth, u32 mipLevel, RENDER_FORMAT format, u32 attribute)
 初期化関数(3D)
 
virtual b32 initializeCube (const GxSize &resolution, u32 mipLevel, RENDER_FORMAT format, u32 attribute)
 初期化関数(Cube)
 
virtual b32 initializeRenderTarget (const GxSize &resolution, RENDER_FORMAT format, RENDER_ANTI_ALIASING antiAliasing, u32 attribute)
 初期化関数(レンダーターゲット)
 
virtual b32 initializeDepthStencil (const GxSize &resolution, RENDER_FORMAT format, RENDER_ANTI_ALIASING antiAliasing, u32 attribute)
 初期化関数(深度ステンシル)
 
 GxRenderTexture (void)
 デフォルトコンストラクタ(RenderDevice以外でのインスタンス化禁止)
 

操作

void onLostDevice (void) override
 デバイスが消失した時点で通知
 
b32 onResetDevice (void) override
 デバイスのリセット後に通知
 
void onRender (void) override
 描画通知
 
virtual b32 map (u32 arrayIndex, u32 mipLevel, u32 mappingType, GxMappingInformation *pMappingInformation)
 マッピング開始
 
virtual void unmap (u32 arrayIndex, u32 mipLevel)
 マッピング終了
 
u32 getMipSize (u32 mipLevel, u32 originalPitch)
 ミップマップサイズを取得
 
u32 getMipPitch (u32 mipLevel, u32 originalPitch)
 ミップマップピッチを取得
 
u8 convertMsaaToSampleCount (RENDER_ANTI_ALIASING antiAliasing)
 MSAAをサンプル数に変換
 
static u32 getMipLine (u32 mipLevel, RENDER_FORMAT format, const GxSize &resolution)
 ミップマップライン数を取得
 

アクセサ

constexpr RENDER_TEXTURE_TYPE getType (void) const
 テクスチャタイプを取得
 
constexpr RENDER_FORMAT getFormat (void) const
 フォーマットを取得
 
constexpr RENDER_ANTI_ALIASING getAntiAliasing (void) const
 アンチエイリアシングを取得
 
GX_FORCE_INLINE const GxSizegetResolution (void) const
 解像度を取得
 
constexpr u32 getDepth (void) const
 3D深度を取得
 
constexpr u32 getArrayCount (void) const
 配列数を取得
 
constexpr u32 getMipLevel (void) const
 ミップレベル
 
constexpr u32 getAttribute (void) const
 属性を取得
 
constexpr GX_HANDLE getHandle (void) const
 テクスチャハンドルを取得
 
void setName (GX_CSTR name)
 名前の設定
 
constexpr GX_CSTR getName (void) const
 名前の取得
 
GX_FORCE_INLINE GxNativeTexture getTexture (void) const
 テクスチャを取得
 
static u32 getBitPerPixel (RENDER_FORMAT format)
 フォーマットから、1ピクセルあたりのビット数を求める
 
static u32 getPitch (RENDER_FORMAT format, u32 width)
 フォーマットと幅からピッチを取得
 
static GxNativeRenderFormat getNativeFormat (RENDER_FORMAT format, u32 attribute)
 ネイティブフォーマットを取得
 

Additional Inherited Members

- Public Member Functions inherited from GxRenderResource
constexpr void forceDelayRelease (void)
 強制遅延解放
 
- Public Member Functions inherited from GxClassBaseReference
 GxClassBaseReference (void)
 コンストラクタ
 
 GxClassBaseReference (const GxClassBaseReference &base)
 コピーコンストラクタ
 
 ~GxClassBaseReference (void) override
 デストラクタ
 
constexpr GxClassBaseReferenceoperator= (const GxClassBaseReference &base)
 代入演算子
 
virtual s32 addReference (void)
 参照カウンタを加算
 
virtual s32 release (void)
 解放
 
virtual s32 getReferenceCount (void) const
 参照カウンタを取得
 
constexpr void setDelayReleaseCount (s32 count)
 遅延解放カウンタを設定
 
void setDelayReleaseCountInfinity (b32 on)
 無限解放待ちの設定
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 
- Public Member Functions inherited from GxRenderNotifier
- Static Public Member Functions inherited from GxRenderResource
static b32 initializeThreadLocalStorage (void)
 スレッドローカルストレージ初期化関数
 
static GX_FORCE_INLINE void disableDelayRelease (void)
 遅延解放を無効化
 
static GX_FORCE_INLINE void enableDelayRelease (void)
 遅延解放を有効化
 
- Static Public Member Functions inherited from GxClassBaseReference
static void initializeDelayRelease (void)
 遅延解放リストの初期化
 
static void terminateDelayRelease (void)
 遅延解放リストの終了
 
static void updateDelayRelease (void)
 遅延解放リストの更新
 
static b32 isDelayReleaseEnable (void)
 遅延解放システムの有効判定
 
static u32 getDelayReleaseListCount (void)
 遅延解放待ちの数を取得
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 
- Static Public Attributes inherited from GxClassBaseReference
static constexpr s32 DELAY_RELEASE_COUNT_INFINITY = -1
 遅延解放の無限待ち定義
 
- Protected Member Functions inherited from GxRenderResource
 GxRenderResource (void)
 デフォルトコンストラクタ(RenderDevice以外でのインスタンス化禁止)
 
- Protected Member Functions inherited from GxRenderNotifier
 GxRenderNotifier (b32 callRender=false)
 コンストラクタ(インスタンス化禁止)
 
virtual ~GxRenderNotifier (void)
 デストラクタ(インスタンス化禁止)
 
- Protected Attributes inherited from GxClassBaseReference
s32 _referenceCount
 参照カウンタ
 
s32 _delayReleaseCount
 遅延解放カウンタ
 
- Static Protected Attributes inherited from GxRenderResource
static s32 _disableDelayRelease [GxThread::THREAD_MAX] = {0}
 遅延解放無効化フラグ
 

Detailed Description

テクスチャクラス

Member Function Documentation

◆ cleanup()

void GxRenderTexture::cleanup ( void )
overridevirtual

delete直前に呼び出される関数

Reimplemented from GxRenderResource.

Here is the call graph for this function:

◆ convertMsaaToSampleCount()

u8 GxRenderTexture::convertMsaaToSampleCount ( RENDER_ANTI_ALIASING antiAliasing)
protected

MSAAをサンプル数に変換

Parameters
antiAliasing[in] アンチエイリアス
Returns
サンプル数

◆ getBitPerPixel()

u32 GxRenderTexture::getBitPerPixel ( RENDER_FORMAT format)
static

フォーマットから、1ピクセルあたりのビット数を求める

Parameters
format[in] フォーマット
Returns
1ピクセルあたりのビット数
Here is the caller graph for this function:

◆ getMipLine()

u32 GxRenderTexture::getMipLine ( u32 mipLevel,
RENDER_FORMAT format,
const GxSize & resolution )
staticprotected

ミップマップライン数を取得

Parameters
mipLevel[in] ミップレベル
format[in] フォーマット
resolution[in] 解像度
Returns
ライン数
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMipPitch()

u32 GxRenderTexture::getMipPitch ( u32 mipLevel,
u32 originalPitch )
protected

ミップマップピッチを取得

Parameters
mipLevel[in] ミップレベル
originalPitch[in] 元サイズのピッチ
Returns
ピッチ
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMipSize()

u32 GxRenderTexture::getMipSize ( u32 mipLevel,
u32 originalPitch )
protected

ミップマップサイズを取得

Parameters
mipLevel[in] ミップレベル
originalPitch[in] 元サイズのピッチ
Returns
ミップマップサイズ
Here is the call graph for this function:

◆ getNativeFormat()

GxNativeRenderFormat GxRenderTexture::getNativeFormat ( RENDER_FORMAT format,
u32 attribute )
static

ネイティブフォーマットを取得

Parameters
format[in] フォーマット
attribute[in] 属性
Returns
ネイティブフォーマット
Here is the caller graph for this function:

◆ getPitch()

u32 GxRenderTexture::getPitch ( RENDER_FORMAT format,
u32 width )
static

フォーマットと幅からピッチを取得

Parameters
format[in] フォーマット
width[in] 幅
Returns
ピッチ
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize2D()

b32 GxRenderTexture::initialize2D ( const GxSize & resolution,
u32 mipLevel,
RENDER_FORMAT format,
u32 attribute )
protectedvirtual

初期化関数(2D)

Parameters
resolution[in] 解像度
mipLevel[in] ミップマップの段数
format[in] フォーマット
attribute[in] 属性
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize3D()

b32 GxRenderTexture::initialize3D ( const GxSize & resolution,
u32 depth,
u32 mipLevel,
RENDER_FORMAT format,
u32 attribute )
protectedvirtual

初期化関数(3D)

Parameters
resolution[in] 解像度
depth[in] 深さ
mipLevel[in] ミップマップの段数
format[in] フォーマット
attribute[in] 属性
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeCube()

b32 GxRenderTexture::initializeCube ( const GxSize & resolution,
u32 mipLevel,
RENDER_FORMAT format,
u32 attribute )
protectedvirtual

初期化関数(Cube)

Parameters
resolution[in] 解像度
mipLevel[in] ミップマップの段数
format[in] フォーマット
attribute[in] 属性
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeDepthStencil()

b32 GxRenderTexture::initializeDepthStencil ( const GxSize & resolution,
RENDER_FORMAT format,
RENDER_ANTI_ALIASING antiAliasing,
u32 attribute )
protectedvirtual

初期化関数(深度ステンシル)

Parameters
resolution[in] 解像度
mipLevel[in] ミップマップの段数
format[in] フォーマット
attribute[in] 属性
Returns
成功ならtrue
Here is the caller graph for this function:

◆ initializeRenderTarget()

b32 GxRenderTexture::initializeRenderTarget ( const GxSize & resolution,
RENDER_FORMAT format,
RENDER_ANTI_ALIASING antiAliasing,
u32 attribute )
protectedvirtual

初期化関数(レンダーターゲット)

Parameters
resolution[in] 解像度
format[in] フォーマット
antiAliasing[in] アンチエイリアス
attribute[in] 属性
Returns
成功ならtrue
Here is the caller graph for this function:

◆ map()

b32 GxRenderTexture::map ( u32 arrayIndex,
u32 mipLevel,
u32 mappingType,
GxMappingInformation * pMappingInformation )
virtual

マッピング開始

Parameters
arrayIndex[in] 配列インデックス
mipLevel[in] ミップマップの段数
mappingType[in] マッピング形式
pMappingInfo[out]マッピング情報
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onLostDevice()

void GxRenderTexture::onLostDevice ( void )
overridevirtual

デバイスが消失した時点で通知

Reimplemented from GxRenderResource.

◆ onRender()

void GxRenderTexture::onRender ( void )
inlineoverridevirtual

描画通知

Reimplemented from GxRenderResource.

◆ onResetDevice()

b32 GxRenderTexture::onResetDevice ( void )
overridevirtual

デバイスのリセット後に通知

Returns
成功ならtrue

Reimplemented from GxRenderResource.

◆ setName()

void GxRenderTexture::setName ( GX_CSTR name)

名前の設定

Parameters
name[in] 名前
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unmap()

void GxRenderTexture::unmap ( u32 arrayIndex,
u32 mipLevel )
virtual

マッピング終了

Parameters
arrayIndex[in] 配列インデックス
mipLevel[in] ミップマップの段数
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: