WebMetalTextureDescriptor.cpp [plain text]
#include "config.h"
#include "WebMetalTextureDescriptor.h"
#if ENABLE(WEBMETAL)
namespace WebCore {
Ref<WebMetalTextureDescriptor> WebMetalTextureDescriptor::create(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped)
{
return adoptRef(*new WebMetalTextureDescriptor(pixelFormat, width, height, mipmapped));
}
WebMetalTextureDescriptor::WebMetalTextureDescriptor(unsigned pixelFormat, unsigned width, unsigned height, bool mipmapped)
: m_descriptor { pixelFormat, width, height, mipmapped }
{
}
unsigned WebMetalTextureDescriptor::width() const
{
return m_descriptor.width();
}
void WebMetalTextureDescriptor::setWidth(unsigned width)
{
m_descriptor.setWidth(width);
}
unsigned WebMetalTextureDescriptor::height() const
{
return m_descriptor.height();
}
void WebMetalTextureDescriptor::setHeight(unsigned height)
{
m_descriptor.setHeight(height);
}
unsigned WebMetalTextureDescriptor::sampleCount() const
{
return m_descriptor.sampleCount();
}
void WebMetalTextureDescriptor::setSampleCount(unsigned sampleCount)
{
m_descriptor.setSampleCount(sampleCount);
}
unsigned WebMetalTextureDescriptor::textureType() const
{
return m_descriptor.textureType();
}
void WebMetalTextureDescriptor::setTextureType(unsigned textureType)
{
m_descriptor.setTextureType(textureType);
}
unsigned WebMetalTextureDescriptor::storageMode() const
{
return m_descriptor.storageMode();
}
void WebMetalTextureDescriptor::setStorageMode(unsigned storageMode)
{
m_descriptor.setStorageMode(storageMode);
}
unsigned WebMetalTextureDescriptor::usage() const
{
return m_descriptor.usage();
}
void WebMetalTextureDescriptor::setUsage(unsigned usage)
{
m_descriptor.setUsage(usage);
}
}
#endif