Categories
Game Creation Mastering Development

Crash when creating RenderTargetViews for Cubemap

I want to create a cubemap and I want to render to it and later sample from it for reflections. However, It crashes when I try to create the faces for the cubemap. Here is my code: RenderTargetCube::RenderTargetCube(ID3D11Device* device, int resolution, DXGI_FORMAT format) { D3D11_TEXTURE2D_DESC desc = {}; desc.Width = resolution; desc.Height = resolution; desc.MipLevels […]

Categories
Game Creation Mastering Development

Crash when creating RenderTargetViews for Cubemap

I want to create a cubemap and I want to render to it and later sample from it for reflections. However, It crashes when I try to create the faces for the cubemap. Here is my code: RenderTargetCube::RenderTargetCube(ID3D11Device* device, int resolution, DXGI_FORMAT format) { D3D11_TEXTURE2D_DESC desc = {}; desc.Width = resolution; desc.Height = resolution; desc.MipLevels […]