stretched software renderer

Started by
2 comments, last by Jason Z 10 years, 6 months ago

Hi,

I'm working on oldschool dos-like games with my own cpu-rendrer, this works like emulators: the only direct3d stuff i need is update a pixel-table and stretch it so it fits window & screen.

In directx 9 i used a dynamic texture with lockrect, and stretched in a dxsprite, so it fits any backbuffer size.

What tool is required in dx11 ? Is "WARP" the good one ? Or "direct2d" ?

Or just use the same way, so, a dynamic texture... where are dynamic texture & lockrect in dx11 ?

Advertisement

Same way. CreateTexture2D with dynamic usage and then ID3D11DeviceContext::Map / Unmap to lock and update it.

Thank you :)

WARP is just a software implementation of the D3D11 driver, so don't confuse that with an API that you can utilize to do something different - it just implements the same behavior as a regular GPU driver except it uses the CPU instead.

This topic is closed to new replies.

Advertisement