Trying to use a Texture3D to visualise a galaxy generator I am writing
The problem is I was going to use a Texture3D and ray trace it, but the maximum width and height allowed appears to be 256 by 256, which is about as useful as a handbrake on a canoe.
Anyone know why?
SharpDX.SharpDXException
HResult=0x80070057
Message=HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.
Source=SharpDX
StackTrace:
at SharpDX.Result.CheckError()
at SharpDX.Direct3D11.Device.CreateTexture3D(Texture3DDescription& descRef, DataBox[] initialDataRef, Texture3D texture3DOut)
at Microsoft.Xna.Framework.Graphics.Texture3D.CreateTexture()
at Microsoft.Xna.Framework.Graphics.Texture3D.PlatformConstruct(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Int32 depth, Boolean mipMap, SurfaceFormat format, Boolean renderTarget)
at Microsoft.Xna.Framework.Graphics.Texture3D..ctor(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Int32 depth, Boolean mipMap, SurfaceFormat format, Boolean renderTarget)
at Microsoft.Xna.Framework.Graphics.Texture3D..ctor(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Int32 depth, Boolean mipMap, SurfaceFormat format)
at GalaxyGenerator.Game1.Initialize() in
C:\Research\Monogame\GalaxyGenerator\GalaxyGenerator\Game1.cs:line 57
at Microsoft.Xna.Framework.Game.DoInitialize()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at Microsoft.Xna.Framework.Game.Run()
at GalaxyGenerator.Program.Main() in
C:\Research\Monogame\GalaxyGenerator\GalaxyGenerator\Program.cs:line 18