Skip to content

Commit 92bb1a3

Browse files
Remove entryPoint if not required (#334)
* Remove entryPoint if not required
1 parent b9b24a4 commit 92bb1a3

File tree

33 files changed

+1
-86
lines changed

33 files changed

+1
-86
lines changed

public/workload-simulator.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,9 @@ <h2><center>Web graphics workload simulator</center></h2>
676676
layout: pipelineLayout,
677677
multisample: { count: sampleCount },
678678
vertex: {
679-
entryPoint: 'vs',
680679
module: shaderModule,
681680
},
682681
fragment: {
683-
entryPoint: 'fs',
684682
targets: [ { format: canvasFormat, }, ],
685683
module: shaderModule,
686684
},

sample/a-buffer/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ const opaquePipeline = device.createRenderPipeline({
8585
layout: 'auto',
8686
vertex: {
8787
module: opaqueModule,
88-
entryPoint: 'main_vs',
8988
buffers: [
9089
{
9190
arrayStride: 3 * Float32Array.BYTES_PER_ELEMENT,
@@ -102,7 +101,6 @@ const opaquePipeline = device.createRenderPipeline({
102101
},
103102
fragment: {
104103
module: opaqueModule,
105-
entryPoint: 'main_fs',
106104
targets: [
107105
{
108106
format: presentationFormat,
@@ -205,7 +203,6 @@ const translucentPipeline = device.createRenderPipeline({
205203
}),
206204
vertex: {
207205
module: translucentModule,
208-
entryPoint: 'main_vs',
209206
buffers: [
210207
{
211208
arrayStride: 3 * Float32Array.BYTES_PER_ELEMENT,
@@ -221,7 +218,6 @@ const translucentPipeline = device.createRenderPipeline({
221218
},
222219
fragment: {
223220
module: translucentModule,
224-
entryPoint: 'main_fs',
225221
targets: [
226222
{
227223
format: presentationFormat,
@@ -293,11 +289,9 @@ const compositePipeline = device.createRenderPipeline({
293289
}),
294290
vertex: {
295291
module: compositeModule,
296-
entryPoint: 'main_vs',
297292
},
298293
fragment: {
299294
module: compositeModule,
300-
entryPoint: 'main_fs',
301295
targets: [
302296
{
303297
format: presentationFormat,

sample/animometer/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ const pipelineDesc: GPURenderPipelineDescriptor = {
9696
layout: 'auto',
9797
vertex: {
9898
module: shaderModule,
99-
entryPoint: 'vert_main',
10099
buffers: [
101100
{
102101
// vertex buffer
@@ -121,7 +120,6 @@ const pipelineDesc: GPURenderPipelineDescriptor = {
121120
},
122121
fragment: {
123122
module: shaderModule,
124-
entryPoint: 'frag_main',
125123
targets: [
126124
{
127125
format: presentationFormat,

sample/bitonicSort/main.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ SampleInitFactoryWebGPU(
294294
module: device.createShaderModule({
295295
code: NaiveBitonicCompute(settings['Workgroup Size']),
296296
}),
297-
entryPoint: 'computeMain',
298297
},
299298
});
300299

@@ -307,7 +306,6 @@ SampleInitFactoryWebGPU(
307306
module: device.createShaderModule({
308307
code: atomicToZero,
309308
}),
310-
entryPoint: 'atomicToZero',
311309
},
312310
});
313311

@@ -427,7 +425,6 @@ SampleInitFactoryWebGPU(
427425
Math.min(settings['Total Elements'] / 2, settings['Size Limit'])
428426
),
429427
}),
430-
entryPoint: 'computeMain',
431428
},
432429
});
433430
// Randomize array elements
@@ -544,7 +541,6 @@ SampleInitFactoryWebGPU(
544541
Math.min(settings['Total Elements'] / 2, settings['Size Limit'])
545542
),
546543
}),
547-
entryPoint: 'computeMain',
548544
},
549545
});
550546
// Create new config key for current element + size limit configuration

sample/bitonicSort/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,11 @@ export abstract class Base2DRendererClass {
203203
module: device.createShaderModule({
204204
code: fullscreenTexturedQuad,
205205
}),
206-
entryPoint: 'vert_main',
207206
},
208207
fragment: {
209208
module: device.createShaderModule({
210209
code: code,
211210
}),
212-
entryPoint: 'frag_main',
213211
targets: [
214212
{
215213
format: presentationFormat,

sample/cameras/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const pipeline = device.createRenderPipeline({
6969
module: device.createShaderModule({
7070
code: cubeWGSL,
7171
}),
72-
entryPoint: 'vertex_main',
7372
buffers: [
7473
{
7574
arrayStride: cubeVertexSize,
@@ -94,7 +93,6 @@ const pipeline = device.createRenderPipeline({
9493
module: device.createShaderModule({
9594
code: cubeWGSL,
9695
}),
97-
entryPoint: 'fragment_main',
9896
targets: [
9997
{
10098
format: presentationFormat,

sample/computeBoids/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const renderPipeline = device.createRenderPipeline({
4444
layout: 'auto',
4545
vertex: {
4646
module: spriteShaderModule,
47-
entryPoint: 'vert_main',
4847
buffers: [
4948
{
5049
// instanced particles buffer
@@ -82,7 +81,6 @@ const renderPipeline = device.createRenderPipeline({
8281
},
8382
fragment: {
8483
module: spriteShaderModule,
85-
entryPoint: 'frag_main',
8684
targets: [
8785
{
8886
format: presentationFormat,
@@ -100,7 +98,6 @@ const computePipeline = device.createComputePipeline({
10098
module: device.createShaderModule({
10199
code: updateSpritesWGSL,
102100
}),
103-
entryPoint: 'main',
104101
},
105102
});
106103

sample/cornell/rasterizer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,10 @@ export default class Rasterizer {
101101
}),
102102
vertex: {
103103
module: mod,
104-
entryPoint: 'vs_main',
105104
buffers: scene.vertexBufferLayout,
106105
},
107106
fragment: {
108107
module: mod,
109-
entryPoint: 'fs_main',
110108
targets: [{ format: framebuffer.format }],
111109
},
112110
primitive: {

sample/cornell/raytracer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default class Raytracer {
8585
module: device.createShaderModule({
8686
code: raytracerWGSL + common.wgsl,
8787
}),
88-
entryPoint: 'main',
8988
constants: {
9089
WorkgroupSizeX: this.kWorkgroupSizeX,
9190
WorkgroupSizeY: this.kWorkgroupSizeY,

sample/cornell/tonemapper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export default class Tonemapper {
7575
layout: pipelineLayout,
7676
compute: {
7777
module: mod,
78-
entryPoint: 'main',
7978
constants: {
8079
WorkgroupSizeX: this.kWorkgroupSizeX,
8180
WorkgroupSizeY: this.kWorkgroupSizeY,

0 commit comments

Comments
 (0)