Skip to content

Commit

Permalink
Morrowind: Fix render crash
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Nov 10, 2024
1 parent e6e451c commit 66f2687
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Morrowind/Render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { White, colorCopy, colorFromRGBA8, colorLerp, colorNewCopy } from "../Co
import * as DDS from "../DarkSouls/dds.js";
import { NamedArrayBufferSlice } from "../DataFetcher.js";
import { AABB, Frustum } from "../Geometry.js";
import { getMatrixTranslation, invlerp, setMatrixTranslation } from "../MathHelpers.js";
import { getMatrixTranslation, invlerp } from "../MathHelpers.js";
import { DeviceProgram } from "../Program.js";
import { SceneContext } from "../SceneBase.js";
import { TextureMapping } from "../TextureHolder.js";
import { makeStaticDataBuffer } from "../gfx/helpers/BufferHelpers.js";
import { makeAttachmentClearDescriptor, makeBackbufferDescSimple, standardFullClearRenderPassDescriptor } from "../gfx/helpers/RenderGraphHelpers.js";
import { makeAttachmentClearDescriptor, makeBackbufferDescSimple } from "../gfx/helpers/RenderGraphHelpers.js";
import { fillColor, fillMatrix4x3, fillMatrix4x4, fillVec3v } from "../gfx/helpers/UniformBufferHelpers.js";
import { GfxBindingLayoutDescriptor, GfxBuffer, GfxBufferUsage, GfxClipSpaceNearZ, GfxCullMode, GfxDevice, GfxFormat, GfxFrontFaceMode, GfxIndexBufferDescriptor, GfxInputLayout, GfxInputLayoutBufferDescriptor, GfxMipFilterMode, GfxProgram, GfxSamplerFormatKind, GfxTexFilterMode, GfxTexture, GfxTextureDimension, GfxTextureUsage, GfxVertexAttributeDescriptor, GfxVertexBufferDescriptor, GfxVertexBufferFrequency, GfxWrapMode, makeTextureDescriptor2D } from "../gfx/platform/GfxPlatform.js";
import { GfxBindingLayoutDescriptor, GfxBuffer, GfxBufferUsage, GfxClipSpaceNearZ, GfxCullMode, GfxDevice, GfxFormat, GfxIndexBufferDescriptor, GfxInputLayout, GfxInputLayoutBufferDescriptor, GfxMipFilterMode, GfxProgram, GfxSamplerFormatKind, GfxTexFilterMode, GfxTexture, GfxTextureDimension, GfxTextureUsage, GfxVertexAttributeDescriptor, GfxVertexBufferDescriptor, GfxVertexBufferFrequency, GfxWrapMode, makeTextureDescriptor2D } from "../gfx/platform/GfxPlatform.js";
import { GfxRenderCache } from "../gfx/render/GfxRenderCache.js";
import { GfxrAttachmentSlot } from "../gfx/render/GfxRenderGraph.js";
import { GfxRenderHelper } from "../gfx/render/GfxRenderHelper.js";
Expand Down Expand Up @@ -496,7 +496,7 @@ class CellData {
const bindingLayoutsTerrain: GfxBindingLayoutDescriptor[] = [
{ numUniformBuffers: 2, numSamplers: 2, samplerEntries: [
{ dimension: GfxTextureDimension.n2DArray, formatKind: GfxSamplerFormatKind.Float, },
{ dimension: GfxTextureDimension.n2D, formatKind: GfxSamplerFormatKind.Float, }, // TODO(jstpierre): Integer texture for the map lookup?
{ dimension: GfxTextureDimension.n2D, formatKind: GfxSamplerFormatKind.UnfilterableFloat, }, // TODO(jstpierre): Integer texture for the map lookup?
] },
];

Expand Down

0 comments on commit 66f2687

Please sign in to comment.