54 CreateRenderTarget(graphicsDevice, width, height, mipMap, preferredFormat, preferredDepthFormat, preferredMultiSampleCount, usage);
101 if (graphicsDevice ==
null)
105 graphicsDevice.
Adapter.
QueryFormat(isBackBuffer:
false, graphicsDevice.
_deviceType, graphicsDevice.
_graphicsProfile, preferredFormat, preferredDepthFormat, preferredMultiSampleCount, out var selectedFormat, out var selectedDepthFormat, out var selectedMultiSampleCount);
108 CreateTexture(graphicsDevice, width, height, mipMap, 1u, (_D3DPOOL)0, selectedFormat);
144 base.ReleaseNativeObject(disposeManagedResource);
175 [HandleProcessCorruptedStateExceptions]
static string DeviceCannotBeNullOnResourceCreate
bool QueryFormat([MarshalAs(UnmanagedType.U1)] bool isBackBuffer, _D3DDEVTYPE deviceType, GraphicsProfile graphicsProfile, SurfaceFormat format, DepthFormat depthFormat, int multiSampleCount, out SurfaceFormat selectedFormat, out DepthFormat selectedDepthFormat, out int selectedMultiSampleCount)
ProfileCapabilities _profileCapabilities
GraphicsProfile _graphicsProfile
void _007ERenderTarget2D()
virtual void SetContentLost([MarshalAs(UnmanagedType.U1)] bool isContentLost)
RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage)
override void Dispose([MarshalAs(UnmanagedType.U1)] bool P_0)
virtual EventHandler< EventArgs > ContentLost
RenderTargetHelper helper
RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height)
override int SaveDataForRecreation()
unsafe override int RecreateAndPopulateObject()
virtual void raise_ContentLost(object value0, EventArgs value1)
void CreateRenderTarget(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, int preferredMultiSampleCount, RenderTargetUsage usage)
DepthFormat DepthStencilFormat
EventHandler< EventArgs > _003Cbacking_store_003EContentLost
override void ReleaseNativeObject([MarshalAs(UnmanagedType.U1)] bool disposeManagedResource)
RenderTarget2D(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat)
unsafe void CreateSurfaces(GraphicsDevice graphicsDevice)
unsafe void ReleaseNativeObject()
static void ValidateCreationParameters(ProfileCapabilities profile, int width, int height, SurfaceFormat format, [MarshalAs(UnmanagedType.U1)] bool mipMap)
unsafe IDirect3DTexture9 * pComPtr
unsafe void CreateTexture(GraphicsDevice graphicsDevice, int width, int height, [MarshalAs(UnmanagedType.U1)] bool mipMap, uint usage, _D3DPOOL pool, SurfaceFormat format)
bool renderTargetContentsDirty
static ? Delegate Remove(Delegate? source, Delegate? value)
static ? Delegate Combine(Delegate? a, Delegate? b)
static readonly EventArgs Empty
void SetContentLost([MarshalAs(UnmanagedType.U1)] bool isContentLost)
void ReleaseNativeObject([MarshalAs(UnmanagedType.U1)] bool disposeManagedResource)
int RecreateAndPopulateObject()
int SaveDataForRecreation()