Gems/Atom

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-23 13:01:33 -07:00
parent 1f44b7a328
commit 804d833bb9
11 changed files with 3 additions and 41 deletions
@@ -15,8 +15,6 @@ namespace AZ
{
namespace SrgLayoutUtility
{
static constexpr char SrgLayoutUtilityName[] = "SrgLayoutUtility";
RHI::ShaderInputImageType ToShaderInputImageType(TextureType textureType)
{
switch (textureType)
@@ -27,9 +27,6 @@ namespace AZ
{
namespace
{
// the max size of a vertex buffer
static const size_t MaxUploadBufferSize = MaxDynamicVertexCount * sizeof(AuxGeomDynamicVertex);
static const RHI::PrimitiveTopology PrimitiveTypeToTopology[PrimitiveType_Count] =
{
RHI::PrimitiveTopology::PointList,
@@ -16,8 +16,6 @@ namespace AZ
{
namespace Render
{
static const char* OcclusionCullingPlaneDrawListTag("occlusioncullingplanevisualization");
OcclusionCullingPlane::~OcclusionCullingPlane()
{
Data::AssetBus::MultiHandler::BusDisconnect();
@@ -22,8 +22,6 @@ namespace AZ
{
namespace Render
{
static const char* ReflectionProbeDrawListTag("reflectionprobevisualization");
ReflectionProbe::~ReflectionProbe()
{
Data::AssetBus::MultiHandler::BusDisconnect();
@@ -17,8 +17,6 @@ namespace AZ
{
namespace Vulkan
{
static constexpr size_t MinGPUMemSize = AZ_TRAIT_ATOM_VULKAN_MIN_GPU_MEM;
RHI::PhysicalDeviceList PhysicalDevice::Enumerate()
{
RHI::PhysicalDeviceList physicalDeviceList;
@@ -60,7 +60,6 @@
namespace
{
const uint32_t IndicesPerFace = 3;
const AZ::RHI::Format IndicesFormat = AZ::RHI::Format::R32_UINT;
const uint32_t PositionFloatsPerVert = 3;
@@ -84,11 +83,6 @@ namespace
// Morph targets
const char* ShaderSemanticName_MorphTargetDeltas = "MORPHTARGET_VERTEXDELTAS";
const AZ::RHI::Format MorphTargetVertexIndexFormat = AZ::RHI::Format::R32_UINT; // Single-component, 32-bit integer as vertex index
const char* ShaderSemanticName_MorphTargetPositionDeltas = "MORPHTARGET_POSITIONDELTAS";
const AZ::RHI::Format MorphTargetPositionDeltaFormat = AZ::RHI::Format::R16_UINT; // 16-bit integer per compressed position delta component
const char* ShaderSemanticName_MorphTargetNormalDeltas = "MORPHTARGET_NORMALDELTAS";
const AZ::RHI::Format MorphTargetNormalDeltaFormat = AZ::RHI::Format::R8_UINT; // 8-bit integer per compressed normal delta component
// Cloth data
const char* const ShaderSemanticName_ClothData = "CLOTH_DATA";
@@ -25,8 +25,7 @@ namespace AZ
namespace
{
constexpr const char* PerContextSrgName = "PerContextSrg";
constexpr const char* PerDrawSrgName = "PerDrawSrg";
};
}
void DynamicDrawContext::MultiStates::UpdateHash(const DrawStateOptions& drawStateOptions)
{
@@ -25,8 +25,6 @@ namespace AZ
{
namespace RPI
{
static constexpr char ShaderSystemLog[] = "ShaderSystem";
void ShaderSystem::Reflect(ReflectContext* context)
{
ShaderOptionDescriptor::Reflect(context);
@@ -30,8 +30,10 @@ namespace AZ
namespace RPI
{
// fixed-size software occlusion culling buffer
#if AZ_TRAIT_MASKED_OCCLUSION_CULLING_SUPPORTED
const uint32_t MaskedSoftwareOcclusionCullingWidth = 1920;
const uint32_t MaskedSoftwareOcclusionCullingHeight = 1080;
#endif
ViewPtr View::CreateView(const AZ::Name& name, UsageFlags usage)
{
@@ -54,7 +54,6 @@ static const int TabCharCount = 4;
// set buffer sizes to hold max characters that can be drawn in 1 DrawString call
static const size_t MaxVerts = 8 * 1024; // 2048 quads
static const size_t MaxIndices = (MaxVerts * 6) / 4; // 6 indices per quad, 6/4 * MaxVerts
static const char DrawList2DPassName[] = "2dpass";
AZ::FFont::FFont(AZ::AtomFont* atomFont, const char* fontName)
: m_name(fontName)
@@ -39,25 +39,6 @@
// Copied from ModelAssetBuilderComponent.cpp
namespace
{
const AZ::u32 IndicesPerFace = 3;
const AZ::RHI::Format IndicesFormat = AZ::RHI::Format::R32_UINT;
const AZ::u32 PositionFloatsPerVert = 3;
const AZ::u32 NormalFloatsPerVert = 3;
const AZ::u32 UVFloatsPerVert = 2;
const AZ::u32 ColorFloatsPerVert = 4;
const AZ::u32 TangentFloatsPerVert = 4;
const AZ::u32 BitangentFloatsPerVert = 3;
const AZ::RHI::Format PositionFormat = AZ::RHI::Format::R32G32B32_FLOAT;
const AZ::RHI::Format NormalFormat = AZ::RHI::Format::R32G32B32_FLOAT;
const AZ::RHI::Format UVFormat = AZ::RHI::Format::R32G32_FLOAT;
const AZ::RHI::Format ColorFormat = AZ::RHI::Format::R32G32B32A32_FLOAT;
const AZ::RHI::Format TangentFormat = AZ::RHI::Format::R32G32B32A32_FLOAT;
const AZ::RHI::Format BitangentFormat = AZ::RHI::Format::R32G32B32_FLOAT;
const AZ::RHI::Format BoneIndexFormat = AZ::RHI::Format::R32G32B32A32_UINT;
const AZ::RHI::Format BoneWeightFormat = AZ::RHI::Format::R32G32B32A32_FLOAT;
const uint32_t LinearSkinningFloatsPerBone = 12;
const uint32_t DualQuaternionSkinningFloatsPerBone = 8;
const uint32_t MaxSupportedSkinInfluences = 4;