Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Engine/Core/Extensions/Metal/MTLDevice+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension MTLDevice {
// ====================
func failOrMakeDepthStencilState(descriptor: MTLDepthStencilDescriptor) -> any MTLDepthStencilState {
guard let state = makeDepthStencilState(descriptor: descriptor) else {
fatalError("Coult not create depth stencil state")
fatalError("Could not create depth stencil state")
}
return state
}
Expand Down Expand Up @@ -60,7 +60,7 @@ extension MTLDevice {
do {
return try makeRenderPipelineState(descriptor: descriptor)
} catch let error {
fatalError("Coult not create render pipeline state, error \(error.localizedDescription)")
fatalError("Could not create render pipeline state, error \(error.localizedDescription)")
}
}
func makeRPSParticle(library: MTLLibrary) -> MTLRenderPipelineState {
Expand Down Expand Up @@ -123,7 +123,7 @@ extension MTLDevice {
do {
return try makeComputePipelineState(function: computeFunction)
} catch let error {
fatalError("Coult not create compute pipeline state, error \(error.localizedDescription)")
fatalError("Could not create compute pipeline state, error \(error.localizedDescription)")
}
}
func makeCPSPostprocessMerge(library: MTLLibrary) -> MTLComputePipelineState {
Expand Down Expand Up @@ -251,7 +251,7 @@ extension MTLDevice {
do {
return try makeDefaultLibrary(bundle: bundle)
} catch let error {
fatalError("Coult not create default library, error \(error.localizedDescription)")
fatalError("Could not create default library, error \(error.localizedDescription)")
}
}
func makePorcelainLibrary() -> MTLLibrary {
Expand Down
2 changes: 1 addition & 1 deletion Engine/Core/Scene/Material/PNIMaterial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct PNIMaterial: PNMaterial {
normals: normals,
metallic: metallic)
guard let argumentBuffer = bufferCreator.create() else {
fatalError("Coult not create argument buffer for the material")
fatalError("Could not create argument buffer for the material")
}
self.argumentBuffer = argumentBuffer
}
Expand Down
Loading