Implementing a lot of the pipeline state setting.

This commit is contained in:
Ben Vanik
2016-02-20 12:59:18 -08:00
parent 97174dbe4d
commit 731ff52773
5 changed files with 850 additions and 411 deletions

View File

@@ -47,8 +47,10 @@ class BufferCache {
// The registers are tightly packed in order as [floats, ints, bools].
// Returns an offset that can be used with the transient_descriptor_set or
// VK_WHOLE_SIZE if the constants could not be uploaded (OOM).
VkDeviceSize UploadConstantRegisters(
const Shader::ConstantRegisterMap& constant_register_map);
// The returned offsets may alias.
std::pair<VkDeviceSize, VkDeviceSize> UploadConstantRegisters(
const Shader::ConstantRegisterMap& vertex_constant_register_map,
const Shader::ConstantRegisterMap& pixel_constant_register_map);
// Uploads index buffer data from guest memory, possibly eliding with
// recently uploaded data or cached copies.