Renderer: Rename some TextureUsage
This commit is contained in:
@@ -157,8 +157,8 @@ namespace Nz
|
|||||||
|
|
||||||
enum class TextureUsage
|
enum class TextureUsage
|
||||||
{
|
{
|
||||||
ColorOutput,
|
ColorAttachment,
|
||||||
DepthStencilOutput,
|
DepthStencilAttachment,
|
||||||
InputAttachment,
|
InputAttachment,
|
||||||
ShaderSampling,
|
ShaderSampling,
|
||||||
TransferSource,
|
TransferSource,
|
||||||
|
|||||||
@@ -356,8 +356,8 @@ namespace Nz
|
|||||||
{
|
{
|
||||||
switch (textureLayout)
|
switch (textureLayout)
|
||||||
{
|
{
|
||||||
case TextureUsage::ColorOutput: return VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
|
case TextureUsage::ColorAttachment: return VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
|
||||||
case TextureUsage::DepthStencilOutput: return VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
|
case TextureUsage::DepthStencilAttachment: return VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
|
||||||
case TextureUsage::InputAttachment: return VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
|
case TextureUsage::InputAttachment: return VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
|
||||||
case TextureUsage::ShaderSampling: return VK_IMAGE_USAGE_SAMPLED_BIT;
|
case TextureUsage::ShaderSampling: return VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||||
case TextureUsage::TransferSource: return VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
|
case TextureUsage::TransferSource: return VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
|
||||||
|
|||||||
Reference in New Issue
Block a user