Skip to content
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 9 commits into from
Oct 17, 2024
Merged

update generated gfx define.ts #17720

merged 9 commits into from
Oct 17, 2024

Conversation

star-e
Copy link
Contributor

@star-e star-e commented Oct 15, 2024

Re: #

Changelog


Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

Copy link

github-actions bot commented Oct 15, 2024

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;

@star-e
Copy link
Contributor Author

star-e commented Oct 15, 2024

@cocos-robot run test cases

@star-e
Copy link
Contributor Author

star-e commented Oct 15, 2024

@cocos-robot run test cases

@star-e
Copy link
Contributor Author

star-e commented Oct 16, 2024

@cocos-robot run test cases

Copy link

@star-e, Please check the result of run test cases:

Task Details

Copy link

@star-e, Please check the result of run test cases:

Task Details

cocos/gfx/base/define.ts Outdated Show resolved Hide resolved
@star-e
Copy link
Contributor Author

star-e commented Oct 17, 2024

@cocos-robot run test cases

@star-e star-e merged commit 8d0d5ef into cocos:v3.8.5 Oct 17, 2024
25 checks passed
@star-e star-e deleted the v3.8.5-pipeline branch October 17, 2024 03:19
Copy link

@star-e, Please check the result of run test cases:

Task Details

Copy link

@star-e, Please check the result of run test cases:

Task Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants