add note about disposing swapchain texture

pull/37/head
cosmonaut 2022-12-01 13:20:11 -08:00
parent 2c4e1b972a
commit b0e1ad3cf8
1 changed files with 2 additions and 2 deletions

View File

@ -1612,11 +1612,11 @@ namespace MoonWorks.Graphics
/// Can return null if the swapchain is unavailable. The user should ALWAYS handle the case where this occurs. /// Can return null if the swapchain is unavailable. The user should ALWAYS handle the case where this occurs.
/// If null is returned, presentation will not occur. /// If null is returned, presentation will not occur.
/// It is an error to acquire two swapchain textures from the same window in one command buffer. /// It is an error to acquire two swapchain textures from the same window in one command buffer.
/// It is an error to dispose the swapchain texture. If you do this your game WILL crash. DO NOT DO THIS.
/// </summary> /// </summary>
public Texture AcquireSwapchainTexture( public Texture AcquireSwapchainTexture(
Window window Window window
) ) {
{
var texturePtr = Refresh.Refresh_AcquireSwapchainTexture( var texturePtr = Refresh.Refresh_AcquireSwapchainTexture(
Device.Handle, Device.Handle,
Handle, Handle,