'What is the impact if I declare the maximum size of a uniform buffer in vulkan shader?

For example, the value of maxUniformBufferRange is 65536 on my GPU. (I'm not sure if it is the max size limit of the uniform buffer or just update size limit.)

If I declare a uniform buffer in shader like:

layout (binding = 1) uniform UBO
{
    uint Source[65536/4];
};

But in vulkan api side I only use part of it, say 64 bytes.
Will there be any bad impact on this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source