本文整理匯總了C#中SiliconStudio.Paradox.Graphics.GraphicsDevice.InitDefaultRenderTarget方法的典型用法代碼示例。如果您正苦於以下問題:C# GraphicsDevice.InitDefaultRenderTarget方法的具體用法?C# GraphicsDevice.InitDefaultRenderTarget怎麽用?C# GraphicsDevice.InitDefaultRenderTarget使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SiliconStudio.Paradox.Graphics.GraphicsDevice
的用法示例。
在下文中一共展示了GraphicsDevice.InitDefaultRenderTarget方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: SwapChainGraphicsPresenter
public SwapChainGraphicsPresenter(GraphicsDevice device, PresentationParameters presentationParameters) : base(device, presentationParameters)
{
gameWindow = (iPhoneOSGameView)Description.DeviceWindowHandle.NativeHandle;
device.InitDefaultRenderTarget(presentationParameters);
backBuffer = device.DefaultRenderTarget;
DepthStencilBuffer = device.windowProvidedDepthTexture;
}
示例2: SwapChainGraphicsPresenter
public SwapChainGraphicsPresenter(GraphicsDevice device, PresentationParameters presentationParameters) : base(device, presentationParameters)
{
gameWindow = (iPhoneOSGameView)Description.DeviceWindowHandle.NativeHandle;
device.InitDefaultRenderTarget(presentationParameters);
backBuffer = Texture.New2D(device, Description.BackBufferWidth, Description.BackBufferHeight, presentationParameters.BackBufferFormat, TextureFlags.RenderTarget | TextureFlags.ShaderResource);
}
示例3: SwapChainGraphicsPresenter
public SwapChainGraphicsPresenter(GraphicsDevice device, PresentationParameters presentationParameters) : base(device, presentationParameters)
{
device.InitDefaultRenderTarget(Description);
//backBuffer = device.DefaultRenderTarget;
// TODO: Review Depth buffer creation for both Android and iOS
//DepthStencilBuffer = device.windowProvidedDepthTexture;
backBuffer = Texture.New2D(device, Description.BackBufferWidth, Description.BackBufferHeight, presentationParameters.BackBufferFormat, TextureFlags.RenderTarget | TextureFlags.ShaderResource);
}