szeged / webrender

A GPU-based renderer for the web
https://doc.servo.org/webrender/
Mozilla Public License 2.0
45 stars 7 forks source link

Reduce the descriptor sets count #240

Closed dati91 closed 5 years ago

dati91 commented 5 years ago

Fixes #234

The reason we run out of descriptors on DX12 is that we created descriptor sets for samplers, even trough we only set sampler once, and it will never change. And DX12's limit for sampler descriptor heap is 2048.

Now we use a different set for the samplers in the shaders, and a separate descriptor pool. And only binds it in the pipeline creation.

Also separates the (gpu/vertex_data) textures which only bound once.