diff --git a/src/core/include/radeonrays.h b/src/core/include/radeonrays.h index 08070e5b..58245eeb 100644 --- a/src/core/include/radeonrays.h +++ b/src/core/include/radeonrays.h @@ -378,13 +378,13 @@ RR_API RRError rrGetSceneBuildMemoryRequirements(RRContext contex * * @param context RR API context. * @param scene Scene to raycast against. - * @param query Query type (clsosest or first) + * @param query Query type (closest or first) * @param rays Buffer of rays. * @param ray_count Number of rays in the buffer (or max number of rays if indirect_ray_count is supplied). * @param indirect_ray_count Optional actual number of rays in the buffer. * @param query_output Type of the information to output. * @param hits Output hits buffer. - * @param scratch Auxilliary buffer for trace. + * @param scratch Auxiliary buffer for trace. * @param command_stream to write command to. * @return Error in case of a failure, RRSuccess otherwise. */ diff --git a/src/core/src/base/intersector_base.h b/src/core/src/base/intersector_base.h index c6dea44f..684bc500 100644 --- a/src/core/src/base/intersector_base.h +++ b/src/core/src/base/intersector_base.h @@ -89,7 +89,7 @@ class IntersectorBase const RRBuildOptions* build_options) = 0; /** - * @brief Get scene build memeory requirements. + * @brief Get scene build memory requirements. * * @param instance_count Number of instances in the scene. * @param build_options Build options. @@ -168,7 +168,7 @@ class IntersectorBase * @param indirect_ray_count Optional buffer containing number of rays in GPU memory. * @param query_output Type of output produced by the intersector. * @param hits Buffer to write hit data to. - * @param scratch Auxilliary buffer for trace. + * @param scratch Auxiliary buffer for trace. **/ virtual void Intersect(CommandStreamBase* command_stream, DevicePtrBase* scene_buffer, diff --git a/src/core/src/dx/device.cpp b/src/core/src/dx/device.cpp index 7d28ec0e..23919264 100644 --- a/src/core/src/dx/device.cpp +++ b/src/core/src/dx/device.cpp @@ -111,7 +111,7 @@ void Device::CreateDXGIAdapter(D3D_FEATURE_LEVEL feature_level) void Device::CreateDeviceAndCommandQueue(D3D_FEATURE_LEVEL feature_level) { - Logger::Get().Debug("Initalizing DirectX in standalone mode"); + Logger::Get().Debug("Initializing DirectX in standalone mode"); // Create the DX12 API device object. ThrowIfFailed(D3D12CreateDevice(dxgi_adapter_.Get(), feature_level, IID_PPV_ARGS(&device_)), @@ -138,7 +138,7 @@ void Device::InitD3D() void Device::InitializePools() { - // Initalize fence pool creation functions. + // Initialize fence pool creation functions. event_pool_.SetCreateFn([device = device_]() { EventBackend* event = new Event(); ID3D12Fence* fence = nullptr; diff --git a/src/core/src/dx/device.h b/src/core/src/dx/device.h index a09bda97..2b03783f 100644 --- a/src/core/src/dx/device.h +++ b/src/core/src/dx/device.h @@ -52,7 +52,7 @@ class Device : public DeviceBackend ~Device(); /************************************************************* - * DeviceBase interface overrrides. + * DeviceBase interface overrides. *************************************************************/ /** * @brief Allocate a command stream. diff --git a/src/core/src/dx/fallback_intersector.h b/src/core/src/dx/fallback_intersector.h index d0f3094f..e8d0af1b 100644 --- a/src/core/src/dx/fallback_intersector.h +++ b/src/core/src/dx/fallback_intersector.h @@ -37,7 +37,7 @@ class Dx12Intersector : public IntersectorBase ~Dx12Intersector() = default; /******************************************** - * IntersectorBase interface overrrides. + * IntersectorBase interface overrides. ********************************************/ /** * @brief Get an info on build memory requirements. diff --git a/src/core/src/dx/kernels/math.hlsl b/src/core/src/dx/kernels/math.hlsl index aa592f03..a03e42e5 100644 --- a/src/core/src/dx/kernels/math.hlsl +++ b/src/core/src/dx/kernels/math.hlsl @@ -29,7 +29,7 @@ float3 TransformPoint(in float3 p, in float4 transform[3]) dot(p, transform[2].xyz) + transform[2].w); } -//< Caluclate inverse of 4x4 matrix. +//< Calculate inverse of 4x4 matrix. float4x4 inverse(in float4x4 m) { float n11 = m[0][0], n12 = m[1][0], n13 = m[2][0], n14 = m[3][0]; diff --git a/test/test_vk/algos_test.h b/test/test_vk/algos_test.h index 90da2247..8978f26c 100644 --- a/test/test_vk/algos_test.h +++ b/test/test_vk/algos_test.h @@ -152,7 +152,7 @@ void AlgosTest::SetUp() std::vector queue_props(queue_family_count); vkGetPhysicalDeviceQueueFamilyProperties(gpus[0], &queue_family_count, queue_props.data()); - // Look for a queue supporing both compute and transfer + // Look for a queue supporting both compute and transfer bool found = false; for (unsigned int i = 0; i < queue_family_count; i++) { diff --git a/test/test_vk/basic_test.h b/test/test_vk/basic_test.h index cdccfc93..069ed250 100644 --- a/test/test_vk/basic_test.h +++ b/test/test_vk/basic_test.h @@ -151,7 +151,7 @@ void BasicTest::SetUp() std::vector queue_props(queue_family_count); vkGetPhysicalDeviceQueueFamilyProperties(gpus[0], &queue_family_count, queue_props.data()); - // Look for a queue supporing both compute and transfer + // Look for a queue supporting both compute and transfer bool found = false; for (unsigned int i = 0; i < queue_family_count; i++) { @@ -361,7 +361,7 @@ TEST_F(BasicTest, BuildSingleTriangle) CHECK_RR_CALL(rrCmdBuildGeometry( context, RR_BUILD_OPERATION_BUILD, &geometry_build_input, &options, scratch_ptr, geometry_ptr, command_stream)); - /// release everuthing + /// release everything RREvent wait_event = nullptr; CHECK_RR_CALL(rrSumbitCommandStream(context, command_stream, nullptr, &wait_event)); CHECK_RR_CALL(rrWaitEvent(context, wait_event));