resize - multiple declarations

Function resize

Recreates a new swap chain given an extant swap chain and a new size.

SwapChain resize (
  const(SwapChain) extant,
  const(Device) device,
  uint width,
  uint height
) @trusted;

Usually called as the result of a swap chain's underlying Surface having been resized, e.g. the user resized your app's window.

Function resize

Recreates a new texture given an extant texture and a new size.

Texture resize (
  Texture extant,
  const(Device) device,
  uint width,
  uint height
) @trusted;

Remarks

Be aware this operation does not copy any data from the extant texture.

Function resize

Recreates a new buffer given an extant buffer and a new size.

Buffer resize (
  Buffer extant,
  const(Device) device,
  uint size
) @trusted;

Remarks

Be aware this operation does not copy any data from the extant buffer.