/// <summary> /// Gets the texture for this draw target, Warming the resource if required. NOTE: this texture will become invalid after a device reset (see <see cref="IContentOwner"/> for details) /// </summary> /// <returns>Texture for this draw target</returns> public TextureCube GetTexture(DrawState state) { if (texture == null) { if (state.GetDrawTarget() != null) throw new InvalidOperationException("A DrawTargetTextureCube Resource may not be created while rendering to another DrawTarget"); this.Warm(state); } return GetTexture(); }