Remove spaces before line feed

This commit is contained in:
SirLynix
2024-01-25 14:38:06 +01:00
parent fccbaf435c
commit 9ada93b995
64 changed files with 187 additions and 187 deletions

View File

@@ -50,7 +50,7 @@ namespace Nz
/*!
* \brief Gets the attenuation
* \return Amount that your sound will drop off as by the inverse square law
* \return Amount that your sound will drop off as by the inverse square law
*/
float SoundEmitter::GetAttenuation() const
{
@@ -125,7 +125,7 @@ namespace Nz
/*!
* \brief Sets the attenuation
*
* \param attenuation Amount that your sound will drop off as by the inverse square law
* \param attenuation Amount that your sound will drop off as by the inverse square law
*/
void SoundEmitter::SetAttenuation(float attenuation)
{

View File

@@ -26,7 +26,7 @@ namespace Nz
MemoryView::MemoryView(void* ptr, UInt64 size) :
Stream(StreamOption::None, OpenMode_ReadWrite),
m_ptr(static_cast<UInt8*>(ptr)),
m_ptr(static_cast<UInt8*>(ptr)),
m_pos(0),
m_size(size)
{

View File

@@ -105,7 +105,7 @@ NAZARA_WARNING_POP()
#endif
}
#endif
void SetCurrentThreadName(const char* threadName)
{
SetThreadName(GetCurrentThreadHandle(), threadName);

View File

@@ -1072,7 +1072,7 @@ namespace Nz
auto CheckExternalTexture = [this](std::size_t attachmentIndex, FrameGraphTextureData& data)
{
// Check if texture
// Check if texture
if (auto externalIt = m_externalTextures.find(attachmentIndex); externalIt != m_externalTextures.end())
{
if (data.viewData)

View File

@@ -154,16 +154,16 @@ fn FragDepthNoAlpha() {} //< dummy
[cond(!Billboard)]
struct VertIn
{
[location(VertexPositionLoc)]
[location(VertexPositionLoc)]
pos: vec3[f32],
[cond(HasVertexColor), location(VertexColorLoc)]
[cond(HasVertexColor), location(VertexColorLoc)]
color: vec4[f32],
[cond(HasNormal), location(VertexNormalLoc)]
normal: vec3[f32],
[cond(HasVertexUV), location(VertexUvLoc)]
[cond(HasVertexUV), location(VertexUvLoc)]
uv: vec2[f32],
[cond(HasSkinning), location(VertexJointIndicesLoc)]
@@ -181,7 +181,7 @@ struct BillboardVertIn
[location(VertexSizeRotLocation)]
sizeRot: vec4[f32], //< width,height,sin,cos
[cond(HasVertexUV), location(VertexUvLoc)]
[cond(HasVertexUV), location(VertexUvLoc)]
uv: vec2[f32],
[cond(HasVertexColor), location(VertexColorLoc)]

View File

@@ -1,6 +1,6 @@
[nzsl_version("1.0")]
module Engine.InstanceData;
[export]
[layout(std140)]
struct InstanceData

View File

@@ -47,7 +47,7 @@ fn FresnelSchlick(cosTheta: f32, F0: vec3[f32]) -> vec3[f32]
{
// TODO: Clamp
return F0 + (vec3[f32](1.0, 1.0, 1.0) - F0) * pow(min(max(1.0 - cosTheta, 0.0), 1.0), 5.0);
}
}
[export]
fn ComputeLightRadiance(lightColor: vec3[f32], posToLight: vec3[f32], lightAttenuation: f32, albedoFactor: vec3[f32], eyeVec: vec3[f32], F0: vec3[f32], normal: vec3[f32], metallic: f32, roughness: f32) -> vec3[f32]

View File

@@ -5,4 +5,4 @@ module Math.Depth;
fn LinearizeDepth(depth: f32, zNear: f32, zFar: f32) -> f32
{
return zNear * zFar / (zFar + depth * (zNear - zFar));
}
}

View File

@@ -297,13 +297,13 @@ fn FragDepthNoAlpha() {} //< dummy
[cond(!Billboard)]
struct VertIn
{
[location(VertexPositionLoc)]
[location(VertexPositionLoc)]
pos: vec3[f32],
[cond(HasVertexColor), location(VertexColorLoc)]
[cond(HasVertexColor), location(VertexColorLoc)]
color: vec4[f32],
[cond(HasVertexUV), location(VertexUvLoc)]
[cond(HasVertexUV), location(VertexUvLoc)]
uv: vec2[f32],
[cond(HasNormal), location(VertexNormalLoc)]
@@ -327,7 +327,7 @@ struct BillboardVertIn
[location(VertexSizeRotLocation)]
sizeRot: vec4[f32], //< width,height,sin,cos
[cond(HasVertexUV), location(VertexUvLoc)]
[cond(HasVertexUV), location(VertexUvLoc)]
uv: vec2[f32],
[cond(HasVertexColor), location(VertexColorLoc)]

View File

@@ -294,13 +294,13 @@ fn FragDepthNoAlpha() {} //< dummy
[cond(!Billboard)]
struct VertIn
{
[location(VertexPositionLoc)]
[location(VertexPositionLoc)]
pos: vec3[f32],
[cond(HasVertexColor), location(VertexColorLoc)]
[cond(HasVertexColor), location(VertexColorLoc)]
color: vec4[f32],
[cond(HasVertexUV), location(VertexUvLoc)]
[cond(HasVertexUV), location(VertexUvLoc)]
uv: vec2[f32],
[cond(HasNormal), location(VertexNormalLoc)]
@@ -324,7 +324,7 @@ struct BillboardVertIn
[location(VertexSizeRotLocation)]
sizeRot: vec4[f32], //< width,height,sin,cos
[cond(HasVertexUV), location(VertexUvLoc)]
[cond(HasVertexUV), location(VertexUvLoc)]
uv: vec2[f32],
[cond(HasVertexColor), location(VertexColorLoc)]

View File

@@ -302,7 +302,7 @@ namespace Nz
void JoltRigidBody3D::WakeUp()
{
JPH::BodyInterface& bodyInterface = m_world->GetPhysicsSystem()->GetBodyInterface();
bodyInterface.ActivateBody(m_body->GetID());
bodyInterface.ActivateBody(m_body->GetID());
}
JoltRigidBody3D& JoltRigidBody3D::operator=(JoltRigidBody3D&& body) noexcept

View File

@@ -58,7 +58,7 @@ namespace Nz
return m_allSockets.count(socket) != 0;
#else
// FD_ISSET is not const-correct
return FD_ISSET(socket, const_cast<fd_set*>(&m_readSockets)) != 0 ||
return FD_ISSET(socket, const_cast<fd_set*>(&m_readSockets)) != 0 ||
FD_ISSET(socket, const_cast<fd_set*>(&m_writeSockets)) != 0;
#endif
}

View File

@@ -35,10 +35,10 @@ fn main(input: FragIn) -> FragOut
// Vertex stage
struct VertIn
{
[location(0)]
[location(0)]
pos: vec3[f32],
[location(1)]
[location(1)]
color: vec4[f32]
}

View File

@@ -162,7 +162,7 @@ namespace Nz
DDSCAPS2_VOLUME = 0x00200000,
DDSCAPS2_CUBEMAP_ALLFACES = DDSCAPS2_CUBEMAP_POSITIVEX | DDSCAPS2_CUBEMAP_NEGATIVEX |
DDSCAPS2_CUBEMAP_POSITIVEY | DDSCAPS2_CUBEMAP_NEGATIVEY |
DDSCAPS2_CUBEMAP_POSITIVEY | DDSCAPS2_CUBEMAP_NEGATIVEY |
DDSCAPS2_CUBEMAP_POSITIVEZ | DDSCAPS2_CUBEMAP_NEGATIVEZ
};

View File

@@ -29,7 +29,7 @@ namespace Nz
std::vector<DescriptorSet> DescriptorPool::AllocateDescriptorSets(UInt32 descriptorSetCount, const VkDescriptorSetLayout* setLayouts)
{
VkDescriptorSetAllocateInfo createInfo = {
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO,
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO,
nullptr,
m_handle,
descriptorSetCount,

View File

@@ -13,7 +13,7 @@ PreviewValues QuadPreview::GetPreview(InputRole role, [[maybe_unused]] std::size
return dummy;
}
PreviewValues uv(128, 128);
PreviewValues uv(128, 128);
float invWidth = 1.f / uv.GetWidth();
float invHeight = 1.f / uv.GetHeight();