-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update generated gfx define.ts #17720
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Interface Check Report! WARNING this pull request has changed these public interfaces:
@@ -8383,9 +8383,9 @@
COMPUTE_SHADER = 4,
INPUT_ATTACHMENT_BENEFIT = 5,
SUBPASS_COLOR_INPUT = 6,
SUBPASS_DEPTH_STENCIL_INPUT = 7,
- RASTERIZATION_ORDER_COHERENT = 8,
+ RASTERIZATION_ORDER_NOCOHERENT = 8,
MULTI_SAMPLE_RESOLVE_DEPTH_STENCIL = 9,
COUNT = 10
}
export enum Format {
@@ -8576,9 +8576,10 @@
STORAGE = 32,
INDIRECT = 64
}
export enum BufferFlagBit {
- NONE = 0
+ NONE = 0,
+ ENABLE_STAGING_WRITE = 1
}
export enum MemoryAccessBit {
NONE = 0,
READ_ONLY = 1,
@@ -8605,9 +8606,10 @@
SAMPLED = 4,
STORAGE = 8,
COLOR_ATTACHMENT = 16,
DEPTH_STENCIL_ATTACHMENT = 32,
- INPUT_ATTACHMENT = 64
+ INPUT_ATTACHMENT = 64,
+ SHADING_RATE = 128
}
export enum TextureFlagBit {
NONE = 0,
GEN_MIPMAP = 1,
@@ -8623,9 +8625,10 @@
RENDER_TARGET = 1,
SAMPLED_TEXTURE = 2,
LINEAR_FILTER = 4,
STORAGE_TEXTURE = 8,
- VERTEX_ATTRIBUTE = 16
+ VERTEX_ATTRIBUTE = 16,
+ SHADING_RATE = 32
}
export enum SampleCount {
X1 = 1,
X2 = 2,
@@ -8752,9 +8755,10 @@
DEPTH_STENCIL_ATTACHMENT_WRITE = 4194304,
COMPUTE_SHADER_WRITE = 8388608,
TRANSFER_WRITE = 16777216,
HOST_PREINITIALIZED = 33554432,
- HOST_WRITE = 67108864
+ HOST_WRITE = 67108864,
+ SHADING_RATE = 134217728
}
export enum ResolveMode {
NONE = 0,
SAMPLE_ZERO = 1,
@@ -8897,12 +8901,14 @@
maxComputeWorkGroupInvocations: number;
maxComputeWorkGroupSize: Size;
maxComputeWorkGroupCount: Size;
supportQuery: boolean;
+ supportVariableRateShading: boolean;
+ supportSubPassShading: boolean;
clipSpaceMinZ: number;
screenSpaceSignY: number;
clipSpaceSignY: number;
- constructor(maxVertexAttributes?: number, maxVertexUniformVectors?: number, maxFragmentUniformVectors?: number, maxTextureUnits?: number, maxImageUnits?: number, maxVertexTextureUnits?: number, maxColorRenderTargets?: number, maxShaderStorageBufferBindings?: number, maxShaderStorageBlockSize?: number, maxUniformBufferBindings?: number, maxUniformBlockSize?: number, maxTextureSize?: number, maxCubeMapTextureSize?: number, maxArrayTextureLayers?: number, max3DTextureSize?: number, uboOffsetAlignment?: number, maxComputeSharedMemorySize?: number, maxComputeWorkGroupInvocations?: number, maxComputeWorkGroupSize?: Size, maxComputeWorkGroupCount?: Size, supportQuery?: boolean, clipSpaceMinZ?: number, screenSpaceSignY?: number, clipSpaceSignY?: number);
+ constructor(maxVertexAttributes?: number, maxVertexUniformVectors?: number, maxFragmentUniformVectors?: number, maxTextureUnits?: number, maxImageUnits?: number, maxVertexTextureUnits?: number, maxColorRenderTargets?: number, maxShaderStorageBufferBindings?: number, maxShaderStorageBlockSize?: number, maxUniformBufferBindings?: number, maxUniformBlockSize?: number, maxTextureSize?: number, maxCubeMapTextureSize?: number, maxArrayTextureLayers?: number, max3DTextureSize?: number, uboOffsetAlignment?: number, maxComputeSharedMemorySize?: number, maxComputeWorkGroupInvocations?: number, maxComputeWorkGroupSize?: Size, maxComputeWorkGroupCount?: Size, supportQuery?: boolean, supportVariableRateShading?: boolean, supportSubPassShading?: boolean, clipSpaceMinZ?: number, screenSpaceSignY?: number, clipSpaceSignY?: number);
copy(info: Readonly<DeviceCaps>): DeviceCaps;
}
export class DeviceOptions {
enableBarrierDeduce: boolean;
@@ -8995,8 +9001,14 @@
copy(info: Readonly<Color>): Color;
set(x: number, y: number, z: number, w: number): Color;
reset(): void;
}
+ export class MarkerInfo {
+ name: string;
+ color: Color;
+ constructor(name?: string, color?: Color);
+ copy(info: Readonly<MarkerInfo>): MarkerInfo;
+ }
export class BindingMappingInfo {
maxBlockCounts: number[];
maxSamplerTextureCounts: number[];
maxSamplerCounts: number[];
@@ -9085,9 +9097,11 @@
baseLevel: number;
levelCount: number;
baseLayer: number;
layerCount: number;
- constructor(texture?: Texture, type?: TextureType, format?: Format, baseLevel?: number, levelCount?: number, baseLayer?: number, layerCount?: number);
+ basePlane: number;
+ planeCount: number;
+ constructor(texture?: Texture, type?: TextureType, format?: Format, baseLevel?: number, levelCount?: number, baseLayer?: number, layerCount?: number, basePlane?: number, planeCount?: number);
copy(info: Readonly<TextureViewInfo>): TextureViewInfo;
}
export class Uniform {
name: string;
@@ -9191,9 +9205,10 @@
samplers: UniformSampler[];
textures: UniformTexture[];
images: UniformStorageImage[];
subpassInputs: UniformInputAttachment[];
- constructor(name?: string, stages?: ShaderStage[], attributes?: Attribute[], blocks?: UniformBlock[], buffers?: UniformStorageBuffer[], samplerTextures?: UniformSamplerTexture[], samplers?: UniformSampler[], textures?: UniformTexture[], images?: UniformStorageImage[], subpassInputs?: UniformInputAttachment[]);
+ hash: number;
+ constructor(name?: string, stages?: ShaderStage[], attributes?: Attribute[], blocks?: UniformBlock[], buffers?: UniformStorageBuffer[], samplerTextures?: UniformSamplerTexture[], samplers?: UniformSampler[], textures?: UniformTexture[], images?: UniformStorageImage[], subpassInputs?: UniformInputAttachment[], hash?: number);
copy(info: Readonly<ShaderInfo>): ShaderInfo;
}
export class InputAssemblerInfo {
attributes: Attribute[];
@@ -9229,31 +9244,45 @@
resolves: number[];
preserves: number[];
depthStencil: number;
depthStencilResolve: number;
+ shadingRate: number;
depthResolveMode: ResolveMode;
stencilResolveMode: ResolveMode;
- constructor(inputs?: number[], colors?: number[], resolves?: number[], preserves?: number[], depthStencil?: number, depthStencilResolve?: number, depthResolveMode?: ResolveMode, stencilResolveMode?: ResolveMode);
+ constructor(inputs?: number[], colors?: number[], resolves?: number[], preserves?: number[], depthStencil?: number, depthStencilResolve?: number, shadingRate?: number, depthResolveMode?: ResolveMode, stencilResolveMode?: ResolveMode);
copy(info: Readonly<SubpassInfo>): SubpassInfo;
}
export class SubpassDependency {
srcSubpass: number;
dstSubpass: number;
generalBarrier: GeneralBarrier;
- prevAccesses: AccessFlags[];
- nextAccesses: AccessFlags[];
- constructor(srcSubpass?: number, dstSubpass?: number, generalBarrier?: GeneralBarrier, prevAccesses?: AccessFlags[], nextAccesses?: AccessFlags[]);
+ prevAccesses: AccessFlags;
+ nextAccesses: AccessFlags;
+ constructor(srcSubpass?: number, dstSubpass?: number, generalBarrier?: GeneralBarrier, prevAccesses?: AccessFlags, nextAccesses?: AccessFlags);
copy(info: Readonly<SubpassDependency>): SubpassDependency;
}
export class RenderPassInfo {
colorAttachments: ColorAttachment[];
- depthStencilAttachment: DepthStencilAttachment | null;
- depthStencilResolveAttachment: DepthStencilAttachment | null;
+ depthStencilAttachment: DepthStencilAttachment;
+ depthStencilResolveAttachment: DepthStencilAttachment;
subpasses: SubpassInfo[];
dependencies: SubpassDependency[];
- constructor(colorAttachments?: ColorAttachment[], depthStencilAttachment?: DepthStencilAttachment | null, depthStencilResolveAttachment?: DepthStencilAttachment | null, subpasses?: SubpassInfo[], dependencies?: SubpassDependency[]);
+ constructor(colorAttachments?: ColorAttachment[], depthStencilAttachment?: DepthStencilAttachment, depthStencilResolveAttachment?: DepthStencilAttachment, subpasses?: SubpassInfo[], dependencies?: SubpassDependency[]);
copy(info: Readonly<RenderPassInfo>): RenderPassInfo;
}
+ export class ResourceRange {
+ width: number;
+ height: number;
+ depthOrArraySize: number;
+ firstSlice: number;
+ numSlices: number;
+ mipLevel: number;
+ levelCount: number;
+ basePlane: number;
+ planeCount: number;
+ constructor(width?: number, height?: number, depthOrArraySize?: number, firstSlice?: number, numSlices?: number, mipLevel?: number, levelCount?: number, basePlane?: number, planeCount?: number);
+ copy(info: Readonly<ResourceRange>): ResourceRange;
+ }
export class GeneralBarrierInfo {
prevAccesses: AccessFlags;
nextAccesses: AccessFlags;
type: BarrierType;
@@ -9263,16 +9292,13 @@
export class TextureBarrierInfo {
prevAccesses: AccessFlags;
nextAccesses: AccessFlags;
type: BarrierType;
- baseMipLevel: number;
- levelCount: number;
- baseSlice: number;
- sliceCount: number;
+ range: ResourceRange;
discardContents: boolean;
srcQueue: Queue | null;
dstQueue: Queue | null;
- constructor(prevAccesses?: AccessFlags, nextAccesses?: AccessFlags, type?: BarrierType, baseMipLevel?: number, levelCount?: number, baseSlice?: number, sliceCount?: number, discardContents?: boolean, srcQueue?: Queue | null, dstQueue?: Queue | null);
+ constructor(prevAccesses?: AccessFlags, nextAccesses?: AccessFlags, type?: BarrierType, range?: ResourceRange, discardContents?: boolean, srcQueue?: Queue | null, dstQueue?: Queue | null);
copy(info: Readonly<TextureBarrierInfo>): TextureBarrierInfo;
}
export class BufferBarrierInfo {
prevAccesses: AccessFlags;
@@ -9306,9 +9332,8 @@
export class DescriptorSetLayoutInfo {
bindings: DescriptorSetLayoutBinding[];
constructor(bindings?: DescriptorSetLayoutBinding[]);
copy(info: Readonly<DescriptorSetLayoutInfo>): DescriptorSetLayoutInfo;
- reset(): void;
}
export class DescriptorSetInfo {
layout: DescriptorSetLayout;
constructor(layout?: DescriptorSetLayout);
@@ -9342,17 +9367,18 @@
constructor(type?: QueryType, maxQueryObjects?: number, forceWait?: boolean);
copy(info: Readonly<QueryPoolInfo>): QueryPoolInfo;
}
export class FormatInfo {
- readonly name: string;
- readonly size: number;
- readonly count: number;
- readonly type: FormatType;
- readonly hasAlpha: boolean;
- readonly hasDepth: boolean;
- readonly hasStencil: boolean;
- readonly isCompressed: boolean;
+ name: string;
+ size: number;
+ count: number;
+ type: FormatType;
+ hasAlpha: boolean;
+ hasDepth: boolean;
+ hasStencil: boolean;
+ isCompressed: boolean;
constructor(name?: string, size?: number, count?: number, type?: FormatType, hasAlpha?: boolean, hasDepth?: boolean, hasStencil?: boolean, isCompressed?: boolean);
+ copy(info: Readonly<FormatInfo>): FormatInfo;
}
export class MemoryStatus {
bufferSize: number;
textureSize: number;
|
@cocos-robot run test cases |
@cocos-robot run test cases |
@cocos-robot run test cases |
@star-e, Please check the result of
Task Details |
@star-e, Please check the result of
Task Details |
dumganhar
reviewed
Oct 17, 2024
dumganhar
reviewed
Oct 17, 2024
dumganhar
reviewed
Oct 17, 2024
dumganhar
reviewed
Oct 17, 2024
GengineJS
approved these changes
Oct 17, 2024
@cocos-robot run test cases |
dumganhar
approved these changes
Oct 17, 2024
@star-e, Please check the result of
Task Details |
@star-e, Please check the result of
Task Details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Re: #
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: