mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2024-11-29 11:24:14 +01:00
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
|
#include "common.h"
|
||
|
|
||
|
#include "kernel/vc4_packet.h"
|
||
|
|
||
|
/*
|
||
|
* https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#vkCmdSetViewport
|
||
|
*/
|
||
|
void vkCmdSetViewport(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports)
|
||
|
{
|
||
|
//TODO
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#vkCmdSetScissor
|
||
|
*/
|
||
|
void vkCmdSetScissor(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors)
|
||
|
{
|
||
|
//TODO
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#vkCmdBindVertexBuffers
|
||
|
*/
|
||
|
void vkCmdBindVertexBuffers(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets)
|
||
|
{
|
||
|
assert(commandBuffer);
|
||
|
|
||
|
_commandBuffer* cb = commandBuffer;
|
||
|
|
||
|
for(int c = 0; c < bindingCount; ++c)
|
||
|
{
|
||
|
cb->vertexBuffers[firstBinding + c] = pBuffers[c];
|
||
|
cb->vertexBufferOffsets[firstBinding + c] = pOffsets[c];
|
||
|
}
|
||
|
}
|