OROCHI
 
Loading...
Searching...
No Matches
GxRenderPixelShader.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13GX_CORE_NAMESPACE_BEGIN()
14
15//===========================================================================
18//===========================================================================
20{
21 //-------------------------------------------------------------
23 //-------------------------------------------------------------
25public:
27 // ClassBaseReference継承クラス用禁止宣言
29
30 friend class GxRenderDevice;
31
33 //-------------------------------------------------------------
35 //-------------------------------------------------------------
37public:
39 void cleanup(void) override;
40
41protected:
43 b32 initialize(const void* pAssembledCode, u32 assembledCodeSize, u32 constantRegisterParameterCount, u32 usageInputSemantics, u32 constantBufferSize) override;
44
47
49 //-------------------------------------------------------------
51 //-------------------------------------------------------------
53public:
55 GX_FORCE_INLINE void onLostDevice(void) override {}
56
58 GX_FORCE_INLINE b32 onResetDevice(void) override { return true; }
59
61 GX_FORCE_INLINE void onRender(void) override {}
62
64 //-------------------------------------------------------------
66 //-------------------------------------------------------------
68public:
70 void releaseDiscardBuffer(b32 isStoreDevelopMemory = true) override;
71
72#if GX_USE_DX11
74 ID3D11PixelShader* getD3D11PixelShader(void) const { return _pD3D11PixelShader; }
75#endif // GX_USE_DX11
76
78 //-------------------------------------------------------------
80 //-------------------------------------------------------------
82private:
83#if GX_USE_DX11
84 ID3D11PixelShader* _pD3D11PixelShader;
85#endif // GX_USE_DX11
86
87#if defined(_PS5)
88 void* _pUseBuffer;
89#endif //_PS5
90
92};
93
94GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
描画関連の依存をこのクラスで吸収します
Definition GxRenderDevice.h:450
b32 initialize(const GxRenderDeviceInitialInformation *pInitialInformation)
初期化関数
Definition GxRenderDevice.cpp:1017
ピクセルシェーダを管理する
Definition GxRenderPixelShader.h:20
GX_FORCE_INLINE void onLostDevice(void) override
デバイスが消失した時点で通知
Definition GxRenderPixelShader.h:55
GX_FORCE_INLINE b32 onResetDevice(void) override
デバイスのリセット後に通知
Definition GxRenderPixelShader.h:58
GX_FORCE_INLINE void onRender(void) override
描画通知
Definition GxRenderPixelShader.h:61
シェーダ共通の処理を記述
Definition GxRenderShader.h:20
32bitブーリアン
Definition GxDefine.h:173