Skip to content

Commit

Permalink
Merge pull request #63 from galacean/perf/format-type
Browse files Browse the repository at this point in the history
perf: opt format type
  • Loading branch information
yiiqii authored May 28, 2024
2 parents fe474d0 + c32cbe9 commit c642559
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface MaterialData extends EffectsObjectData {

export interface GeometryData extends EffectsObjectData {
vertexData: VertexData,
indexFormat: number,
indexFormat: IndexFormatType,
indexOffset: number,
subMeshes: SubMesh[],
/**
Expand Down Expand Up @@ -144,14 +144,19 @@ export interface VertexData {
}

export enum VertexFormatType {
Float16,
Float32,
Int16,
Int8,
UInt16,
Int16,
Int32,
UInt8,
UInt16,
UInt32,
}

export enum IndexFormatType {
None = -1,
UInt8,
UInt16,
UInt32,
}
Expand Down

0 comments on commit c642559

Please sign in to comment.