private static extern void Internal_CreateInstance(Texture3D instance, PixelFormat format, int width, int height, int depth, TextureUsage usage, bool hasMipmaps, bool gammaCorrection);
/// <summary> /// Assigns a 3D texture to the shader parameter with the specified name. /// </summary> /// <param name="name">Name of the shader parameter.</param> /// <param name="value">Value of the parameter.</param> public void SetTexture3D(string name, Texture3D value) { IntPtr texturePtr = IntPtr.Zero; if (value != null) texturePtr = value.GetCachedPtr(); Internal_SetTexture3D(mCachedPtr, name, texturePtr); }