you want to render some objects and then use it as an imgui texture?
you want to render some objects and then use it as an imgui texture?





BoxUnhandled exception. Silk.NET.GLFW.GlfwException: PlatformError: Win32: Failed to convert string from UTF-8: De parameter is onjuist. at Silk.NET.GLFW.Glfw.<>c.<.cctor>b__141_0(ErrorCode errorCode, String description) at Silk.NET.GLFW.Glfw.CreateWindow(Int32 width, Int32 height, String title, Monitor* monitor, WindowHandle* share) at Silk.NET.Windowing.Glfw.GlfwWindow.CoreInitialize(WindowOptions opts) at Silk.NET.Windowing.Internals.WindowImplementationBase.CoreInitialize(ViewOptions opts) at Silk.NET.Windowing.Internals.ViewImplementationBase.Initialize() at Silk.NET.Windowing.WindowExtensions.Run(IView view) at Neoskye.Browser.Browser..ctor() in C:\Users\tagsu\code\neoskye\Tools\Browser\Browser.cs:line 31 at Program.<Main>$(String[] args) in C:\Users\tagsu\code\neoskye\Tools\Browser\Program.cs:line 3 TitleWindowOptionsCharsDecimal0-9._IInputContextuint.MaxValue2000ushort.MaxValue public TextureD3D11(Direct3D11Backend backend, uint width, uint height, TextureParameters parameters) {
backend.CheckThread();
this._backend = backend;
this._device = backend.GetDevice();
this._deviceContext = backend.GetDeviceContext();
Texture2DDescription textureDescription = new Texture2DDescription {
Width = (int) width,
Height = (int) height,
MipLevels = MipMapCount((int)width, (int)height),
ArraySize = 1,
Format = Format.R8G8B8A8_UNorm,
BindFlags = BindFlags.ShaderResource | BindFlags.RenderTarget,
Usage = ResourceUsage.Default,
MiscFlags = ResourceOptionFlags.GenerateMips,
SampleDescription = new SampleDescription {
Count = 1, Quality = 0
},
};
ID3D11Texture2D texture = this._device.CreateTexture2D(textureDescription);
ID3D11ShaderResourceView textureView = this._device.CreateShaderResourceView(texture);
this._texture = texture;
this.TextureView = textureView;
this.GenerateMips();
this._size = new Vector2(width, height);
}